core: implement Metropolis EIP 658, receipt status byte

This commit is contained in:
rjl493456442
2017-08-21 08:47:15 +08:00
committed by Péter Szilágyi
parent 2fd5ba6bd4
commit 28aea46ac0
16 changed files with 75 additions and 46 deletions

View File

@ -180,7 +180,7 @@ func odrContractCall(ctx context.Context, db ethdb.Database, bc *core.BlockChain
context := core.NewEVMContext(msg, header, chain, nil)
vmenv := vm.NewEVM(context, st, config, vm.Config{})
gp := new(core.GasPool).AddGas(math.MaxBig256)
ret, _, _ := core.ApplyMessage(vmenv, msg, gp)
ret, _, _, _ := core.ApplyMessage(vmenv, msg, gp)
res = append(res, ret...)
if st.Error() != nil {
return res, st.Error()