core/txpool: add SetCodeTxType to LegacyPool transaction filter

This commit is contained in:
islishude 2024-12-24 22:19:37 +08:00
parent 341647f186
commit 101940b70a

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.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType: case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType, types.SetCodeTxType:
return true return true
default: default:
return false return false