From 6a69e88b489b459cbe5430b14eddb7bd6a73c54a Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Thu, 5 May 2022 08:34:01 -0400 Subject: [PATCH] store/state: Add TODO to move prefixes to common package Signed-off-by: Thane Thomson --- internal/state/store.go | 1 + internal/store/store.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/state/store.go b/internal/state/store.go index bd14809e8..2d2e4dc81 100644 --- a/internal/state/store.go +++ b/internal/state/store.go @@ -28,6 +28,7 @@ const ( // NB: Before modifying these, cross-check them with those in // internal/store/store.go +// TODO(thane): Move these and the ones in internal/store/store.go to their own package. const ( // prefixes are unique across all tm db's prefixValidators = int64(5) diff --git a/internal/store/store.go b/internal/store/store.go index cb8b9c649..b88e24e2b 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -611,6 +611,7 @@ func (bs *BlockStore) Close() error { // key prefixes // NB: Before modifying these, cross-check them with those in // internal/state/store.go +// TODO(thane): Move these and the ones in internal/state/store.go to their own package. const ( // prefixes are unique across all tm db's prefixBlockMeta = int64(0)