From b017301f84a43407b490d9861a8079640e06af65 Mon Sep 17 00:00:00 2001 From: Janus Date: Thu, 15 Mar 2018 01:01:35 +0100 Subject: [PATCH] lightning: another case of moving of pubkey to signdesc's keydesc --- lib/lightning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lightning.py b/lib/lightning.py index a9c4c2bd..bf771b48 100644 --- a/lib/lightning.py +++ b/lib/lightning.py @@ -470,7 +470,7 @@ def SignOutputRaw(json): def signOutputRaw(tx, signDesc): adr = None - if len(signDesc.pubKey) != 0: + if len(signDesc.keyDescriptor.pubKey) != 0: adr = bitcoin.pubkey_to_address('p2wpkh', binascii.hexlify( signDesc.keyDescriptor.pubKey).decode("utf-8")) # Because this is all NewAddress supports pri = fetchPrivKey(adr, signDesc.keyDescriptor.keyLocator.family, signDesc.keyDescriptor.keyLocator.index)