diff options
author | rjl493456442 <garyrong0905@gmail.com> | 2017-08-21 08:47:15 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-22 23:35:17 +0800 |
commit | 28aea46ac08579f3ecd1c35620915b8e1bfcc8b0 (patch) | |
tree | a2d00f77c624c5c255af1d05873eb3c5b0f17591 /core/state_processor.go | |
parent | 2fd5ba6bd41380cf0e21d3ec0ca4bbc4aa7b6c34 (diff) | |
download | dexon-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar dexon-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.gz dexon-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.bz2 dexon-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.lz dexon-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.xz dexon-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.zst dexon-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.zip |
core: implement Metropolis EIP 658, receipt status byte
Diffstat (limited to 'core/state_processor.go')
-rw-r--r-- | core/state_processor.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/state_processor.go b/core/state_processor.go index 4489cfce2..a4b554b10 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -98,7 +98,7 @@ func ApplyTransaction(config *params.ChainConfig, bc *BlockChain, author *common // about the transaction and calling mechanisms. vmenv := vm.NewEVM(context, statedb, config, cfg) // Apply the transaction to the current state (included in the env) - _, gas, err := ApplyMessage(vmenv, msg, gp) + _, gas, failed, err := ApplyMessage(vmenv, msg, gp) if err != nil { return nil, nil, err } @@ -114,7 +114,7 @@ func ApplyTransaction(config *params.ChainConfig, bc *BlockChain, author *common // Create a new receipt for the transaction, storing the intermediate root and gas used by the tx // based on the eip phase, we're passing wether the root touch-delete accounts. - receipt := types.NewReceipt(root, usedGas) + receipt := types.NewReceipt(root, failed, usedGas) receipt.TxHash = tx.Hash() receipt.GasUsed = new(big.Int).Set(gas) // if the transaction created a contract, store the creation address in the receipt. |