Skip to content

Commit

Permalink
Fix indexer unit test from upstream ethereum#20506 (ethereum#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
nambrot authored Feb 5, 2020
1 parent 5dd90d3 commit 0776c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chain_indexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0776c12

Please sign in to comment.