Merge pull request #548 from maticnetwork/raneet10/bench-fix

Fix Benchmark test
This commit is contained in:
Raneet Debnath 2022-10-15 23:28:12 +05:30 committed by GitHub
commit 02e84ff6f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,7 +162,7 @@ func genTxRing(naccounts int) func(int, *BlockGen) {
// genUncles generates blocks with two uncle headers.
func genUncles(i int, gen *BlockGen) {
if i >= 6 {
if i >= 7 {
b2 := gen.PrevBlock(i - 6).Header()
b2.Extra = []byte("foo")
gen.AddUncle(b2)