Browse Source

send data_loss_protect fields if we support it

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 6 years ago
parent
commit
67f1ade798
  1. 3
      electrum/lnpeer.py

3
electrum/lnpeer.py

@ -703,8 +703,7 @@ class Peer(Logger):
self.network.trigger_callback('channel', chan)
current_remote_ctn = chan.config[REMOTE].ctn
# send message
if self.their_localfeatures & LnLocalFeatures.OPTION_DATA_LOSS_PROTECT_REQ:
self.logger.info('peer requires data loss protect')
if self.localfeatures & LnLocalFeatures.OPTION_DATA_LOSS_PROTECT_OPT:
if current_remote_ctn == 0:
last_rev_secret = 0
else:

Loading…
Cancel
Save