From 9a7ffaa09fdb522405bf65c40dba38fc1b471243 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Tue, 18 Jul 2023 19:40:05 +0800 Subject: [PATCH] change msg.gasPrice in function AsMessage --- core/types/transaction.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index 1a87a679a9..6c94f1b6cd 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -262,7 +262,9 @@ func (tx *Transaction) AsMessage(s Signer, balanceFee *big.Int, number *big.Int) var err error msg.from, err = Sender(s, tx) if balanceFee != nil { - if number.Cmp(common.TIPTRC21Fee) > 0 { + if number.Cmp(common.BlockNumberGas50x) >= 0 { + msg.gasPrice = common.GasPrice50x + } else if number.Cmp(common.TIPTRC21Fee) > 0 { msg.gasPrice = common.TRC21GasPrice } else { msg.gasPrice = common.TRC21GasPriceBefore