mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
Set withdraw to nil when building blocks for integration tests (#1066)
This commit is contained in:
parent
5da60c24d7
commit
4896ab25ed
1 changed files with 5 additions and 1 deletions
|
|
@ -220,7 +220,11 @@ func buildNextBlock(t *testing.T, _bor consensus.Engine, chain *core.BlockChain,
|
|||
ctx := context.Background()
|
||||
|
||||
// Finalize and seal the block
|
||||
block, _ := _bor.FinalizeAndAssemble(ctx, chain, b.header, state, b.txs, nil, b.receipts, []*types.Withdrawal{})
|
||||
block, err := _bor.FinalizeAndAssemble(ctx, chain, b.header, state, b.txs, nil, b.receipts, nil)
|
||||
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("error finalizing block: %v", err))
|
||||
}
|
||||
|
||||
// Write state changes to db
|
||||
root, err := state.Commit(chain.Config().IsEIP158(b.header.Number))
|
||||
|
|
|
|||
Loading…
Reference in a new issue