1
0

do not try to reestablish channels in PREOPENING state (per BOLT2).

This commit is contained in:
ThomasV
2020-02-23 14:54:04 +01:00
parent 8730fa3f75
commit 54ef6db762
3 changed files with 9 additions and 5 deletions

View File

@@ -764,6 +764,7 @@ class LNWallet(LNWorker):
if funding_tx.is_complete():
# TODO make more robust (timeout low? server returns error?)
await asyncio.wait_for(self.network.broadcast_transaction(funding_tx), LN_P2P_NETWORK_TIMEOUT)
chan.set_state(channel_states.OPENING)
return chan, funding_tx
def add_channel(self, chan):