lnbase: fix bug in message parsing
This commit is contained in:
parent
ab715438c6
commit
38f3db3712
@ -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…
Reference in New Issue
Block a user