mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 23:13:45 +00:00
Merge pull request #548 from maticnetwork/raneet10/bench-fix
Fix Benchmark test
This commit is contained in:
commit
02e84ff6f5
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ func genTxRing(naccounts int) func(int, *BlockGen) {
|
||||||
|
|
||||||
// genUncles generates blocks with two uncle headers.
|
// genUncles generates blocks with two uncle headers.
|
||||||
func genUncles(i int, gen *BlockGen) {
|
func genUncles(i int, gen *BlockGen) {
|
||||||
if i >= 6 {
|
if i >= 7 {
|
||||||
b2 := gen.PrevBlock(i - 6).Header()
|
b2 := gen.PrevBlock(i - 6).Header()
|
||||||
b2.Extra = []byte("foo")
|
b2.Extra = []byte("foo")
|
||||||
gen.AddUncle(b2)
|
gen.AddUncle(b2)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue