Skip to content

Commit 3fb8b87

Browse files
authored
eth/filters: terminate pending tx subscription on error ethereum#32794 (#1901)
1 parent acd3eb9 commit 3fb8b87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eth/filters/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ func (api *FilterAPI) NewPendingTransactionFilter() rpc.ID {
141141
api.filtersMu.Lock()
142142
delete(api.filters, pendingTxSub.ID)
143143
api.filtersMu.Unlock()
144+
pendingTxSub.Unsubscribe()
144145
return
145146
}
146147
}

0 commit comments

Comments
 (0)