good morning!!!!

Skip to content
Snippets Groups Projects
Commit b88b4632 authored by Gary Rong's avatar Gary Rong Committed by Péter Szilágyi
Browse files

core: fix chain indexer unit test (#20506)

parent 4c8fcd93
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,7 @@ func (b *testChainIndexBackend) assertBlocks(headNum, failNum uint64) (uint64, b
}
func (b *testChainIndexBackend) reorg(headNum uint64) uint64 {
firstChanged := headNum / b.indexer.sectionSize
firstChanged := (headNum + 1) / b.indexer.sectionSize
if firstChanged < b.stored {
b.stored = firstChanged
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment