1
0

lnpeer: reestablish_channel - fix data_loss_protect edge case

This commit is contained in:
SomberNight
2019-08-05 17:43:06 +02:00
committed by ThomasV
parent 107f271e58
commit 940fc86749
3 changed files with 12 additions and 1 deletions

View File

@@ -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()