Browse Source

upfront_shutdown_script: fix ChannelBackup constructor

master
ThomasV 5 years ago
parent
commit
b3eb8592f3
  1. 6
      electrum/lnchannel.py

6
electrum/lnchannel.py

@ -420,7 +420,7 @@ class ChannelBackup(AbstractChannel):
current_commitment_signature=None, current_commitment_signature=None,
current_htlc_signatures=b'', current_htlc_signatures=b'',
htlc_minimum_msat=1, htlc_minimum_msat=1,
) upfront_shutdown_script='')
self.config[REMOTE] = RemoteConfig( self.config[REMOTE] = RemoteConfig(
payment_basepoint=OnlyPubkeyKeypair(cb.remote_payment_pubkey), payment_basepoint=OnlyPubkeyKeypair(cb.remote_payment_pubkey),
revocation_basepoint=OnlyPubkeyKeypair(cb.remote_revocation_pubkey), revocation_basepoint=OnlyPubkeyKeypair(cb.remote_revocation_pubkey),
@ -436,8 +436,8 @@ class ChannelBackup(AbstractChannel):
reserve_sat = None, reserve_sat = None,
htlc_minimum_msat=None, htlc_minimum_msat=None,
next_per_commitment_point=None, next_per_commitment_point=None,
current_per_commitment_point=None) current_per_commitment_point=None,
upfront_shutdown_script='')
self.node_id = cb.node_id self.node_id = cb.node_id
self.channel_id = cb.channel_id() self.channel_id = cb.channel_id()
self.funding_outpoint = cb.funding_outpoint() self.funding_outpoint = cb.funding_outpoint()

Loading…
Cancel
Save