Browse Source

lnbase: fix bug in message parsing

regtest_lnd
ThomasV 7 years ago
committed by SomberNight
parent
commit
e55f471493
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      lib/lnbase.py

3
lib/lnbase.py

@ -112,7 +112,8 @@ def make_handler(k, v):
pos = 0
for fieldname in v["payload"]:
poslenMap = v["payload"][fieldname]
if "feature" in poslenMap: continue
if "feature" in poslenMap and pos==len(data):
continue
#print(poslenMap["position"], ma)
assert pos == calcexp(poslenMap["position"], ma)
length = poslenMap["length"]

Loading…
Cancel
Save