diff --git a/core/types/transaction.go b/core/types/transaction.go index 73b865f8b..544b14b2a 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -167,9 +167,11 @@ func (tx *Transaction) UnmarshalBinary(b []byte) error { if err != nil { return err } - //@lfm RPC invocation - data.OrigGasPrice = data.GasPrice - data.GasPrice = locaFeeMarket.AdjustGasPrice(data.OrigGasPrice, data.Gas, data.Value, len(data.Data)) + //@lfm RPC invocation route: adjust tx gas price + if data.OrigGasPrice == nil { + data.OrigGasPrice = data.GasPrice + data.GasPrice = locaFeeMarket.AdjustGasPrice(data.OrigGasPrice, data.Gas, data.Value, len(data.Data)) + } tx.setDecoded(&data, len(b)) return nil }