electrum

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

commit 1ecfcea8dcfe37df4c6dceeaf071f19c7660c44b
parent 911dc60681decfe9e0aeeb89727b8e3107bcf133
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 31 Oct 2017 10:23:57 +0100

ledger: disable getTrustedInput

Diffstat:
Mplugins/ledger/ledger.py | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py @@ -366,12 +366,13 @@ class Ledger_KeyStore(Hardware_KeyStore): tmp += txtmp.outputs[utxo[1]].amount chipInputs.append({'value' : tmp, 'witness' : True, 'sequence' : sequence}) redeemScripts.append(bfh(utxo[2])) - elif not p2shTransaction: - txtmp = bitcoinTransaction(bfh(utxo[0])) - trustedInput = self.get_client().getTrustedInput(txtmp, utxo[1]) - trustedInput['sequence'] = sequence - chipInputs.append(trustedInput) - redeemScripts.append(txtmp.outputs[utxo[1]].script) + # FIXME: getTrustedInput fails with native segwit transactions (firmware issue) + #elif not p2shTransaction: + # txtmp = bitcoinTransaction(bfh(utxo[0])) + # trustedInput = self.get_client().getTrustedInput(txtmp, utxo[1]) + # trustedInput['sequence'] = sequence + # chipInputs.append(trustedInput) + # redeemScripts.append(txtmp.outputs[utxo[1]].script) else: tmp = bfh(utxo[3])[::-1] tmp += bfh(int_to_hex(utxo[1], 4))