Browse Source

lnbase: fix bug in message parsing

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 7 years ago
parent
commit
71eacb4eab
  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