fix clearing pending_support caches upon abandon

This commit is contained in:
Jack Robison 2021-06-06 13:05:45 -04:00 committed by Victor Shyba
parent f4ca3ea66b
commit 35232b3650

View file

@ -797,6 +797,8 @@ class BlockProcessor:
if prev_signing_hash and prev_signing_hash in self.pending_channel_counts: if prev_signing_hash and prev_signing_hash in self.pending_channel_counts:
self.pending_channel_counts.pop(prev_signing_hash) self.pending_channel_counts.pop(prev_signing_hash)
for support_txo_to_clear in self.pending_supports[claim_hash]:
self.pending_support_txos.pop(support_txo_to_clear)
self.pending_supports[claim_hash].clear() self.pending_supports[claim_hash].clear()
self.pending_supports.pop(claim_hash) self.pending_supports.pop(claim_hash)