From 86925899957a673e0f30ade5ab9530b573ded80d Mon Sep 17 00:00:00 2001 From: buddh0 Date: Tue, 25 Feb 2025 15:55:33 +0800 Subject: [PATCH] core/txpool: only removeAuthorities for SetCodeTxType txs --- core/txpool/legacypool/legacypool.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 4250283b0366..bb0885eee8a5 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -1765,12 +1765,14 @@ func (t *lookup) Remove(hash common.Hash) { t.lock.Lock() defer t.lock.Unlock() - t.removeAuthorities(hash) tx, ok := t.txs[hash] if !ok { log.Error("No transaction found to be deleted", "hash", hash) return } + if tx.Type() == types.SetCodeTxType { + t.removeAuthorities(hash) + } t.slots -= numSlots(tx) slotsGauge.Update(int64(t.slots))