Skip to content

Commit 8692589

Browse files
committed
core/txpool: only removeAuthorities for SetCodeTxType txs
1 parent 7d8aca9 commit 8692589

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/txpool/legacypool/legacypool.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,12 +1765,14 @@ func (t *lookup) Remove(hash common.Hash) {
17651765
t.lock.Lock()
17661766
defer t.lock.Unlock()
17671767

1768-
t.removeAuthorities(hash)
17691768
tx, ok := t.txs[hash]
17701769
if !ok {
17711770
log.Error("No transaction found to be deleted", "hash", hash)
17721771
return
17731772
}
1773+
if tx.Type() == types.SetCodeTxType {
1774+
t.removeAuthorities(hash)
1775+
}
17741776
t.slots -= numSlots(tx)
17751777
slotsGauge.Update(int64(t.slots))
17761778

0 commit comments

Comments
 (0)