Browse Source

follow-up previous commit

regtest_lnd
ThomasV 6 years ago
committed by SomberNight
parent
commit
c3e70a2b28
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/lnpeer.py

4
electrum/lnpeer.py

@ -405,7 +405,7 @@ class Peer(PrintError):
chan.receive_new_commitment(remote_sig, [])
# broadcast funding tx
await asyncio.wait_for(self.network.broadcast_transaction(funding_tx), 1)
chan.open_with_first_pcp(self, remote_per_commitment_point, remote_sig)
chan.open_with_first_pcp(remote_per_commitment_point, remote_sig)
chan.set_remote_commitment()
chan.set_local_commitment(chan.current_commitment(LOCAL))
return chan
@ -488,7 +488,7 @@ class Peer(PrintError):
channel_id=channel_id,
signature=sig_64,
)
chan.open_with_first_pcp(self, payload['first_per_commitment_point'], remote_sig)
chan.open_with_first_pcp(payload['first_per_commitment_point'], remote_sig)
self.lnworker.save_channel(chan)
self.lnwatcher.watch_channel(chan.get_funding_address(), chan.funding_outpoint.to_str())
self.lnworker.on_channels_updated()

Loading…
Cancel
Save