File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1765,12 +1765,12 @@ func (t *lookup) Remove(hash common.Hash) {
1765
1765
t .lock .Lock ()
1766
1766
defer t .lock .Unlock ()
1767
1767
1768
- t .removeAuthorities (hash )
1769
1768
tx , ok := t .txs [hash ]
1770
1769
if ! ok {
1771
1770
log .Error ("No transaction found to be deleted" , "hash" , hash )
1772
1771
return
1773
1772
}
1773
+ t .removeAuthorities (tx )
1774
1774
t .slots -= numSlots (tx )
1775
1775
slotsGauge .Update (int64 (t .slots ))
1776
1776
@@ -1808,8 +1808,9 @@ func (t *lookup) addAuthorities(tx *types.Transaction) {
1808
1808
1809
1809
// removeAuthorities stops tracking the supplied tx in relation to its
1810
1810
// authorities.
1811
- func (t * lookup ) removeAuthorities (hash common.Hash ) {
1812
- for addr := range t .auths {
1811
+ func (t * lookup ) removeAuthorities (tx * types.Transaction ) {
1812
+ hash := tx .Hash ()
1813
+ for _ , addr := range tx .SetCodeAuthorities () {
1813
1814
list := t .auths [addr ]
1814
1815
// Remove tx from tracker.
1815
1816
if i := slices .Index (list , hash ); i >= 0 {
You can’t perform that action at this time.
0 commit comments