core: fix uncle creation in TestFastVsFullChains (#25476)
Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
parent
e93442c6cf
commit
e4b3bd6f26
@ -759,9 +759,9 @@ func TestFastVsFullChains(t *testing.T) {
|
|||||||
block.AddTx(tx)
|
block.AddTx(tx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If the block number is a multiple of 5, add a few bonus uncles to the block
|
// If the block number is a multiple of 5, add an uncle to the block
|
||||||
if i%5 == 5 {
|
if i%5 == 4 {
|
||||||
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))})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// Import the chain as an archive node for the comparison baseline
|
// Import the chain as an archive node for the comparison baseline
|
||||||
|
Loading…
Reference in New Issue
Block a user