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 ed51540 commit 1e66593Copy full SHA for 1e66593
core/blockchain_test.go
@@ -759,9 +759,9 @@ func TestFastVsFullChains(t *testing.T) {
759
block.AddTx(tx)
760
}
761
762
- // If the block number is a multiple of 5, add a few bonus uncles to the block
763
- if i%5 == 5 {
764
- block.AddUncle(&types.Header{ParentHash: block.PrevBlock(i - 1).Hash(), Number: big.NewInt(int64(i - 1))})
+ // If the block number is a multiple of 5, add an uncle to the block
+ if i%5 == 4 {
+ 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