txpool: fix eip1559TxNormalization bug

This commit is contained in:
jangko 2022-04-03 12:02:48 +07:00
parent 61d7a9acea
commit 00e2ec7d38
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ func eip1559TxNormalization*(tx: Transaction;
result.maxPriorityFee = tx.gasPrice
result.maxFee = tx.gasPrice
if FkLondon <= fork:
result.gasPrice = min(tx.maxPriorityFee + baseFee.int64, tx.maxFee)
result.gasPrice = min(result.maxPriorityFee + baseFee.int64, result.maxFee)
# ------------------------------------------------------------------------------
# Public functionss