From dc2f8ee804a7a2062f19521932c0a3f76d7b2aa1 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 9 May 2018 18:14:22 +0200 Subject: [PATCH] fix regression from 1d6f000868caa02607129a99cad7bed8ec3f28df re trezor/keepkey multisig signing --- plugins/keepkey/keepkey.py | 2 +- plugins/trezor/trezor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/keepkey/keepkey.py b/plugins/keepkey/keepkey.py index 0355e50a1..3ec6d105d 100644 --- a/plugins/keepkey/keepkey.py +++ b/plugins/keepkey/keepkey.py @@ -327,7 +327,7 @@ class KeepKeyPlugin(HW_PluginBase): txinputtype.prev_hash = prev_hash txinputtype.prev_index = prev_index - if 'scriptSig' in txin: + if txin.get('scriptSig') is not None: script_sig = bfh(txin['scriptSig']) txinputtype.script_sig = script_sig diff --git a/plugins/trezor/trezor.py b/plugins/trezor/trezor.py index f0dff3058..1de3e8262 100644 --- a/plugins/trezor/trezor.py +++ b/plugins/trezor/trezor.py @@ -379,7 +379,7 @@ class TrezorPlugin(HW_PluginBase): txinputtype.prev_hash = prev_hash txinputtype.prev_index = prev_index - if 'scriptSig' in txin: + if txin.get('scriptSig') is not None: script_sig = bfh(txin['scriptSig']) txinputtype.script_sig = script_sig