fvm: set gas costs to nil for implicit messages

This is what the lotus VM does.
This commit is contained in:
Steven Allen 2022-02-23 19:22:47 +00:00
parent 6e1d5c5733
commit aad376296e

View File

@ -277,16 +277,7 @@ func (vm *FVM) ApplyImplicitMessage(ctx context.Context, cmsg *types.Message) (*
ExitCode: exitcode.ExitCode(ret.ExitCode),
GasUsed: ret.GasUsed,
},
GasCosts: &GasOutputs{
// TODO: do the other optional fields eventually
BaseFeeBurn: abi.TokenAmount{},
OverEstimationBurn: abi.TokenAmount{},
MinerPenalty: ret.MinerPenalty,
MinerTip: ret.MinerTip,
Refund: abi.TokenAmount{},
GasRefund: 0,
GasBurned: 0,
},
GasCosts: nil,
// TODO: do these eventually, not consensus critical
ActorErr: nil,
ExecutionTrace: types.ExecutionTrace{},