send data_loss_protect fields if we support it

This commit is contained in:
ThomasV 2019-06-07 12:28:06 +02:00
parent 9eddb9844c
commit 67f1ade798

View file

@ -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: