send data_loss_protect fields if we support it
This commit is contained in:
@@ -703,8 +703,7 @@ class Peer(Logger):
|
|||||||
self.network.trigger_callback('channel', chan)
|
self.network.trigger_callback('channel', chan)
|
||||||
current_remote_ctn = chan.config[REMOTE].ctn
|
current_remote_ctn = chan.config[REMOTE].ctn
|
||||||
# send message
|
# send message
|
||||||
if self.their_localfeatures & LnLocalFeatures.OPTION_DATA_LOSS_PROTECT_REQ:
|
if self.localfeatures & LnLocalFeatures.OPTION_DATA_LOSS_PROTECT_OPT:
|
||||||
self.logger.info('peer requires data loss protect')
|
|
||||||
if current_remote_ctn == 0:
|
if current_remote_ctn == 0:
|
||||||
last_rev_secret = 0
|
last_rev_secret = 0
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user