Browse Source
Merge pull request #7939 from SomberNight/202208_lnwatcher_dont_load_redeemed_chans
lnwatcher: don't add `REDEEMED` channels
patch-4
ThomasV
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
electrum/lnworker.py
|
@ -758,9 +758,11 @@ class LNWallet(LNWorker): |
|
|
self.lnrater = LNRater(self, network) |
|
|
self.lnrater = LNRater(self, network) |
|
|
|
|
|
|
|
|
for chan in self.channels.values(): |
|
|
for chan in self.channels.values(): |
|
|
self.lnwatcher.add_channel(chan.funding_outpoint.to_str(), chan.get_funding_address()) |
|
|
if not chan.is_redeemed(): |
|
|
|
|
|
self.lnwatcher.add_channel(chan.funding_outpoint.to_str(), chan.get_funding_address()) |
|
|
for cb in self.channel_backups.values(): |
|
|
for cb in self.channel_backups.values(): |
|
|
self.lnwatcher.add_channel(cb.funding_outpoint.to_str(), cb.get_funding_address()) |
|
|
if not cb.is_redeemed(): |
|
|
|
|
|
self.lnwatcher.add_channel(cb.funding_outpoint.to_str(), cb.get_funding_address()) |
|
|
|
|
|
|
|
|
for coro in [ |
|
|
for coro in [ |
|
|
self.maybe_listen(), |
|
|
self.maybe_listen(), |
|
|