aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_indexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/chain_indexer.go')
-rw-r--r--core/chain_indexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_indexer.go b/core/chain_indexer.go
index 89ee75eb2..4bdd4ba1c 100644
--- a/core/chain_indexer.go
+++ b/core/chain_indexer.go
@@ -445,7 +445,7 @@ func (c *ChainIndexer) AddChildIndexer(indexer *ChainIndexer) {
func (c *ChainIndexer) loadValidSections() {
data, _ := c.indexDb.Get([]byte("count"))
if len(data) == 8 {
- c.storedSections = binary.BigEndian.Uint64(data[:])
+ c.storedSections = binary.BigEndian.Uint64(data)
}
}