legacypool: don't allow 7702 txs in pool yet

This commit is contained in:
lightclient 2024-11-26 17:22:41 -07:00
parent f32e9bfe36
commit 48ef8da9f0
No known key found for this signature in database
GPG key ID: 75C916AFEE20183E

View file

@ -279,7 +279,7 @@ func New(config Config, chain BlockChain) *LegacyPool {
// pool, specifically, whether it is a Legacy, AccessList or Dynamic transaction. // pool, specifically, whether it is a Legacy, AccessList or Dynamic transaction.
func (pool *LegacyPool) Filter(tx *types.Transaction) bool { func (pool *LegacyPool) Filter(tx *types.Transaction) bool {
switch tx.Type() { switch tx.Type() {
case types.SetCodeTxType, types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType: case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType:
return true return true
default: default:
return false return false
@ -611,8 +611,7 @@ func (pool *LegacyPool) validateTxBasics(tx *types.Transaction, local bool) erro
Accept: 0 | Accept: 0 |
1<<types.LegacyTxType | 1<<types.LegacyTxType |
1<<types.AccessListTxType | 1<<types.AccessListTxType |
1<<types.DynamicFeeTxType | 1<<types.DynamicFeeTxType,
1<<types.SetCodeTxType,
MaxSize: txMaxSize, MaxSize: txMaxSize,
MinTip: pool.gasTip.Load().ToBig(), MinTip: pool.gasTip.Load().ToBig(),
} }