Skip to content

Commit c4c6d7e

Browse files
committed
fix panic
1 parent d7705da commit c4c6d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/blockchain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ func TestFastVsFullChains(t *testing.T) {
761761
}
762762
// If the block number is a multiple of 5, add an uncle to the block
763763
if i%5 == 4 {
764-
block.AddUncle(&types.Header{ParentHash: block.PrevBlock(i - 1).Hash(), Number: big.NewInt(int64(i - 1))})
764+
block.AddUncle(&types.Header{ParentHash: block.PrevBlock(i - 2).Hash(), Number: big.NewInt(int64(i))})
765765
}
766766
})
767767
// Import the chain as an archive node for the comparison baseline

0 commit comments

Comments
 (0)