From 71eacb4eabf9b99ba743b07d43da6facc5483fd6 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 26 Apr 2018 18:58:54 +0200 Subject: [PATCH] lnbase: fix bug in message parsing --- lib/lnbase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lnbase.py b/lib/lnbase.py index f42d1b1a5..36b3327d1 100644 --- a/lib/lnbase.py +++ b/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"]