We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7705da commit c4c6d7eCopy full SHA for c4c6d7e
core/blockchain_test.go
@@ -761,7 +761,7 @@ func TestFastVsFullChains(t *testing.T) {
761
}
762
// If the block number is a multiple of 5, add an uncle to the block
763
if i%5 == 4 {
764
- block.AddUncle(&types.Header{ParentHash: block.PrevBlock(i - 1).Hash(), Number: big.NewInt(int64(i - 1))})
+ block.AddUncle(&types.Header{ParentHash: block.PrevBlock(i - 2).Hash(), Number: big.NewInt(int64(i))})
765
766
})
767
// Import the chain as an archive node for the comparison baseline
0 commit comments