mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
fix test
This commit is contained in:
parent
14f5a15754
commit
5cd89898a4
1 changed files with 2 additions and 1 deletions
|
|
@ -120,9 +120,10 @@ func TestEraE(t *testing.T) {
|
||||||
body: mustEncode(&types.Body{}),
|
body: mustEncode(&types.Body{}),
|
||||||
receipts: mustEncode([]types.ReceiptForStorage{}),
|
receipts: mustEncode([]types.ReceiptForStorage{}),
|
||||||
hash: common.Hash{byte(idx)},
|
hash: common.Hash{byte(idx)},
|
||||||
|
difficulty: big.NewInt(0),
|
||||||
}
|
}
|
||||||
blocks = append(blocks, blk)
|
blocks = append(blocks, blk)
|
||||||
if err := builder.AddRLP(blk.header, blk.body, blk.receipts, num, blk.hash, nil, nil); err != nil {
|
if err := builder.AddRLP(blk.header, blk.body, blk.receipts, num, blk.hash, nil, big.NewInt(0)); err != nil {
|
||||||
t.Fatalf("error adding post-merge block %d: %v", idx, err)
|
t.Fatalf("error adding post-merge block %d: %v", idx, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue