lnbase: fix bug in message parsing
This commit is contained in:
@@ -112,7 +112,8 @@ def make_handler(k, v):
|
|||||||
pos = 0
|
pos = 0
|
||||||
for fieldname in v["payload"]:
|
for fieldname in v["payload"]:
|
||||||
poslenMap = v["payload"][fieldname]
|
poslenMap = v["payload"][fieldname]
|
||||||
if "feature" in poslenMap: continue
|
if "feature" in poslenMap and pos==len(data):
|
||||||
|
continue
|
||||||
#print(poslenMap["position"], ma)
|
#print(poslenMap["position"], ma)
|
||||||
assert pos == calcexp(poslenMap["position"], ma)
|
assert pos == calcexp(poslenMap["position"], ma)
|
||||||
length = poslenMap["length"]
|
length = poslenMap["length"]
|
||||||
|
|||||||
Reference in New Issue
Block a user