mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 02:35:20 +00:00
send data_loss_protect fields if we support it
This commit is contained in:
parent
9eddb9844c
commit
67f1ade798
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue