From a76453543bcb79e7d1d15792631ad143715f2058 Mon Sep 17 00:00:00 2001 From: buddh0 Date: Mon, 23 Dec 2024 10:40:53 +0800 Subject: [PATCH] core/txpool: accept SetCodeTxType transactions for test purpose --- core/txpool/legacypool/legacypool.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 328452a6eb..87f8e323d3 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -299,7 +299,8 @@ func New(config Config, chain BlockChain) *LegacyPool { // pool, specifically, whether it is a Legacy, AccessList or Dynamic transaction. func (pool *LegacyPool) Filter(tx *types.Transaction) bool { switch tx.Type() { - case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType: + //TODO(Nathan): add SetCodeTxType into LegacyPool for test, finally will rollback and be consistent with upstream + case types.LegacyTxType, types.AccessListTxType, types.DynamicFeeTxType, types.SetCodeTxType: return true default: return false @@ -687,7 +688,8 @@ func (pool *LegacyPool) validateTxBasics(tx *types.Transaction, local bool) erro Accept: 0 | 1<