From b6332ed79a4e07589f67bc281cfef60b44a18147 Mon Sep 17 00:00:00 2001 From: colinlyguo Date: Sun, 22 Dec 2024 02:57:01 +0800 Subject: [PATCH] add SetCode transaction to txpool --- core/txpool/legacypool/legacypool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 70be7034ee..19ce3018af 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -276,10 +276,10 @@ func New(config Config, chain BlockChain) *LegacyPool { } // Filter returns whether the given transaction can be consumed by the legacy -// pool, specifically, whether it is a Legacy, AccessList or Dynamic transaction. +// pool, specifically, whether it is a Legacy, AccessList, Dynamic or SetCode transaction. func (pool *LegacyPool) Filter(tx *types.Transaction) bool { switch tx.Type() { - case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType: + case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType, types.SetCodeTxType: return true default: return false