1
0

lnrouter: fix off-by-one in NUM_MAX_EDGES_IN_PAYMENT_PATH

This commit is contained in:
SomberNight
2019-09-06 18:36:21 +02:00
parent 25c372a3e0
commit d4da4aa56c
2 changed files with 2 additions and 2 deletions

View File

@@ -692,7 +692,7 @@ def generate_keypair(ln_keystore: BIP32_KeyStore, key_family: LnKeyFamily, index
NUM_MAX_HOPS_IN_PAYMENT_PATH = 20
NUM_MAX_EDGES_IN_PAYMENT_PATH = NUM_MAX_HOPS_IN_PAYMENT_PATH + 1
NUM_MAX_EDGES_IN_PAYMENT_PATH = NUM_MAX_HOPS_IN_PAYMENT_PATH
class ShortChannelID(bytes):