mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
change msg.gasPrice in function AsMessage
This commit is contained in:
parent
845d3d49e5
commit
9a7ffaa09f
1 changed files with 3 additions and 1 deletions
|
|
@ -262,7 +262,9 @@ func (tx *Transaction) AsMessage(s Signer, balanceFee *big.Int, number *big.Int)
|
||||||
var err error
|
var err error
|
||||||
msg.from, err = Sender(s, tx)
|
msg.from, err = Sender(s, tx)
|
||||||
if balanceFee != nil {
|
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
|
msg.gasPrice = common.TRC21GasPrice
|
||||||
} else {
|
} else {
|
||||||
msg.gasPrice = common.TRC21GasPriceBefore
|
msg.gasPrice = common.TRC21GasPriceBefore
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue