fvm: set gas costs to nil for implicit messages
This is what the lotus VM does.
This commit is contained in:
parent
6e1d5c5733
commit
aad376296e
@ -277,16 +277,7 @@ func (vm *FVM) ApplyImplicitMessage(ctx context.Context, cmsg *types.Message) (*
|
|||||||
ExitCode: exitcode.ExitCode(ret.ExitCode),
|
ExitCode: exitcode.ExitCode(ret.ExitCode),
|
||||||
GasUsed: ret.GasUsed,
|
GasUsed: ret.GasUsed,
|
||||||
},
|
},
|
||||||
GasCosts: &GasOutputs{
|
GasCosts: nil,
|
||||||
// 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,
|
|
||||||
},
|
|
||||||
// TODO: do these eventually, not consensus critical
|
// TODO: do these eventually, not consensus critical
|
||||||
ActorErr: nil,
|
ActorErr: nil,
|
||||||
ExecutionTrace: types.ExecutionTrace{},
|
ExecutionTrace: types.ExecutionTrace{},
|
||||||
|
Loading…
Reference in New Issue
Block a user