tfollow-up 46d8080c76e79670e8abaaaa0eb2d4d4a74544c1: own channels are no longer in channel_db - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit af457ea2ec8f124653d0c5fab76d8ee062861101
DIR parent 81dc2591b14c5f9b90959b931ad1160bfca00266
HTML Author: ThomasV <thomasv@electrum.org>
Date: Wed, 11 Mar 2020 10:26:07 +0100
follow-up 46d8080c76e79670e8abaaaa0eb2d4d4a74544c1: own channels are no longer in channel_db
Diffstat:
M electrum/lnworker.py | 8 --------
1 file changed, 0 insertions(+), 8 deletions(-)
---
DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py
t@@ -770,10 +770,6 @@ class LNWallet(LNWorker):
async def update_closed_channel(self, chan, funding_txid, funding_height, closing_txid, closing_height, keep_watching):
- # remove from channel_db
- if chan.short_channel_id is not None:
- self.channel_db.remove_channel(chan.short_channel_id)
-
if chan.get_state() < channel_states.CLOSED:
chan.set_state(channel_states.CLOSED)
t@@ -957,10 +953,6 @@ class LNWallet(LNWorker):
async def _pay_to_route(self, route: LNPaymentRoute, lnaddr: LnAddr) -> PaymentAttemptLog:
short_channel_id = route[0].short_channel_id
chan = self.get_channel_by_short_id(short_channel_id)
- if not chan:
- self.channel_db.remove_channel(short_channel_id)
- raise Exception(f"PathFinder returned path with short_channel_id "
- f"{short_channel_id} that is not in channel list")
peer = self.peers.get(route[0].node_id)
if not peer:
raise Exception('Dropped peer')