diff --git a/core/database_util.go b/core/database_util.go index c4b50e5d8ab8..477be0f0ed74 100644 --- a/core/database_util.go +++ b/core/database_util.go @@ -35,10 +35,6 @@ import ( ) var ( - headHeaderKey = []byte("LastHeader") - headBlockKey = []byte("LastBlock") - headFastKey = []byte("LastFast") - trieSyncKey = []byte("TrieSync") // Data item prefixes (use single byte to avoid mixing data types, avoid `i`). headerPrefix = []byte("h") // headerPrefix + num (uint64 big endian) + hash -> header diff --git a/core/rawdb/schema.go b/core/rawdb/schema.go index a0a1852c7550..2fbb17d31a86 100644 --- a/core/rawdb/schema.go +++ b/core/rawdb/schema.go @@ -34,6 +34,7 @@ var ( // headFastBlockKey tracks the latest known incomplete block's hash during fast sync. headFastBlockKey = []byte("LastFast") + trieSyncKey = []byte("TrieSync") // Data item prefixes (use single byte to avoid mixing data types, avoid `i`, used for indexes). headerPrefix = []byte("h") // headerPrefix + num (uint64 big endian) + hash -> header