lnpeer: reestablish_channel - fix data_loss_protect edge case
This commit is contained in:
@@ -151,6 +151,7 @@ class RevocationStore:
|
||||
self.index -= 1
|
||||
|
||||
def retrieve_secret(self, index: int) -> bytes:
|
||||
assert index <= self.START_INDEX, index
|
||||
for bucket in self.buckets:
|
||||
if bucket is None:
|
||||
raise UnableToDeriveSecret()
|
||||
|
||||
Reference in New Issue
Block a user