lnbase: fix bug in message parsing

This commit is contained in:
ThomasV 2018-04-26 18:58:54 +02:00 committed by Janus
parent ab715438c6
commit 38f3db3712

View File

@ -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"]