electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 71eacb4eabf9b99ba743b07d43da6facc5483fd6
parent 7176b0834c3f128cdec2b2b95fe15644e5dd449e
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 26 Apr 2018 18:58:54 +0200

lnbase: fix bug in message parsing

Diffstat:
Mlib/lnbase.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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"]