mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
BaseFee is nil prior to London hard fork (#5213)
This commit is contained in:
parent
4c4baf4bbf
commit
94d14dd248
@ -390,12 +390,12 @@ func filterBadTransactions(tx kv.Tx, transactions []types.Transaction, config pa
|
||||
continue
|
||||
}
|
||||
|
||||
if config.IsLondon(blockNumber) {
|
||||
baseFee256 := uint256.NewInt(0)
|
||||
if baseFee256.SetFromBig(baseFee) {
|
||||
return nil, fmt.Errorf("bad baseFee")
|
||||
if overflow := baseFee256.SetFromBig(baseFee); overflow {
|
||||
return nil, fmt.Errorf("bad baseFee %s", baseFee)
|
||||
}
|
||||
// Make sure the transaction gasFeeCap is greater than the block's baseFee.
|
||||
if config.IsLondon(blockNumber) {
|
||||
if !transaction.GetFeeCap().IsZero() || !transaction.GetTip().IsZero() {
|
||||
if err := core.CheckEip1559TxGasFeeCap(sender, transaction.GetFeeCap(), transaction.GetTip(), baseFee256); err != nil {
|
||||
transactions = transactions[1:]
|
||||
|
Loading…
Reference in New Issue
Block a user