mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core: fix error in chainmakers when engine was not set
This commit is contained in:
parent
1cc5428c65
commit
fa0bcc0ca2
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ func (b *BlockGen) AddTxWithChain(bc *BlockChain, tx *types.Transaction) {
|
||||||
b.SetCoinbase(common.Address{})
|
b.SetCoinbase(common.Address{})
|
||||||
}
|
}
|
||||||
b.statedb.Prepare(tx.Hash(), common.Hash{}, len(b.txs))
|
b.statedb.Prepare(tx.Hash(), common.Hash{}, len(b.txs))
|
||||||
blockContext := NewBlockContext(b.header, bc, nil)
|
blockContext := NewBlockContext(b.header, bc, &common.Address{})
|
||||||
signer := types.MakeSigner(b.config, b.header.Number)
|
signer := types.MakeSigner(b.config, b.header.Number)
|
||||||
receipt, _, err := ApplyTransaction(b.config, signer, blockContext, b.gasPool, b.statedb, b.header, tx, &b.header.GasUsed, vm.Config{})
|
receipt, _, err := ApplyTransaction(b.config, signer, blockContext, b.gasPool, b.statedb, b.header, tx, &b.header.GasUsed, vm.Config{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue