diff options
author | ledgerwatch <akhounov@gmail.com> | 2018-06-07 16:34:24 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-06-07 16:34:24 +0800 |
commit | feb6620c346b62d938cfde4bd6677a1c680e29b2 (patch) | |
tree | 81ab6ac7d2ac50bb974073e4bfd0f4a2d0565680 /core | |
parent | 90b22773e99244b37f68f3a8401c405254e0af4e (diff) | |
download | go-tangerine-feb6620c346b62d938cfde4bd6677a1c680e29b2.tar.gz go-tangerine-feb6620c346b62d938cfde4bd6677a1c680e29b2.tar.zst go-tangerine-feb6620c346b62d938cfde4bd6677a1c680e29b2.zip |
core: relax type requirement for bc in ApplyTransaction (#16901)
Diffstat (limited to 'core')
-rw-r--r-- | core/state_processor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/state_processor.go b/core/state_processor.go index 4dc58b9de..8e238ce1f 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -85,7 +85,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg // and uses the input parameters for its environment. It returns the receipt // for the transaction, gas used and an error if the transaction failed, // indicating the block was invalid. -func ApplyTransaction(config *params.ChainConfig, bc *BlockChain, author *common.Address, gp *GasPool, statedb *state.StateDB, header *types.Header, tx *types.Transaction, usedGas *uint64, cfg vm.Config) (*types.Receipt, uint64, error) { +func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *common.Address, gp *GasPool, statedb *state.StateDB, header *types.Header, tx *types.Transaction, usedGas *uint64, cfg vm.Config) (*types.Receipt, uint64, error) { msg, err := tx.AsMessage(types.MakeSigner(config, header.Number)) if err != nil { return nil, 0, err |