mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
Revert "triedb: set default indexer value as zero"
This reverts commit e9cee310e1.
Signed-off-by: Delweng <delweng@gmail.com>
This commit is contained in:
parent
e9cee310e1
commit
389f2f1cbc
1 changed files with 1 additions and 4 deletions
|
|
@ -49,10 +49,7 @@ type indexMetadata struct {
|
||||||
func loadIndexMetadata(db ethdb.KeyValueReader) *indexMetadata {
|
func loadIndexMetadata(db ethdb.KeyValueReader) *indexMetadata {
|
||||||
blob := rawdb.ReadStateHistoryIndexMetadata(db)
|
blob := rawdb.ReadStateHistoryIndexMetadata(db)
|
||||||
if len(blob) == 0 {
|
if len(blob) == 0 {
|
||||||
return &indexMetadata{
|
return nil
|
||||||
Version: stateIndexVersion,
|
|
||||||
Last: 0,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
var m indexMetadata
|
var m indexMetadata
|
||||||
if err := rlp.DecodeBytes(blob, &m); err != nil {
|
if err := rlp.DecodeBytes(blob, &m); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue