propagate gas outputs in fvm ApplyRet

This commit is contained in:
vyzo 2022-05-04 13:40:07 +03:00
parent f9a5c17c5a
commit 89418a5c34

View File

@ -14,8 +14,6 @@ import (
"github.com/filecoin-project/go-state-types/network" "github.com/filecoin-project/go-state-types/network"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain/state" "github.com/filecoin-project/lotus/chain/state"
cbor "github.com/ipfs/go-ipld-cbor" cbor "github.com/ipfs/go-ipld-cbor"
@ -349,14 +347,13 @@ func (vm *FVM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*ApplyRet
GasUsed: ret.GasUsed, GasUsed: ret.GasUsed,
}, },
GasCosts: &GasOutputs{ GasCosts: &GasOutputs{
// TODO: do the other optional fields eventually BaseFeeBurn: ret.BaseFeeBurn,
BaseFeeBurn: big.Zero(), OverEstimationBurn: ret.OverEstimationBurn,
OverEstimationBurn: big.Zero(),
MinerPenalty: ret.MinerPenalty, MinerPenalty: ret.MinerPenalty,
MinerTip: ret.MinerTip, MinerTip: ret.MinerTip,
Refund: big.Zero(), Refund: ret.Refund,
GasRefund: 0, GasRefund: ret.GasRefund,
GasBurned: 0, GasBurned: ret.GasBurned,
}, },
ActorErr: aerr, ActorErr: aerr,
ExecutionTrace: et.ToExecutionTrace(), ExecutionTrace: et.ToExecutionTrace(),