1
0

ln: use START_INDEX instead of 2**48-1

This commit is contained in:
Janus
2018-07-25 14:00:22 +02:00
committed by ThomasV
parent a841fa3602
commit 3c06b3cee1
3 changed files with 7 additions and 7 deletions

View File

@@ -440,7 +440,7 @@ class TestLNUtil(unittest.TestCase):
seed = bitcoin.sha256(b"shachaintest")
consumer = RevocationStore()
for i in range(10000):
secret = get_per_commitment_secret_from_seed(seed, 2**48 - i - 1)
secret = get_per_commitment_secret_from_seed(seed, RevocationStore.START_INDEX - i)
try:
consumer.add_next_entry(secret)
except Exception as e: