commit 8fd84f77c7cfc69fa88ffb97fe42379bd22b8ead
parent 4d0030363beb44980e4bc75497c222ca76f9ff6e
Author: Tom Kneiphof <tomkneiphof@gmail.com>
Date: Mon, 7 Jan 2019 10:49:11 +0100
Fix ledger transaction version (#4991)
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/electrum/plugins/ledger/ledger.py b/electrum/plugins/ledger/ledger.py
@@ -440,7 +440,7 @@ class Ledger_KeyStore(Hardware_KeyStore):
self.get_client().enableAlternate2fa(False)
if segwitTransaction:
self.get_client().startUntrustedTransaction(True, inputIndex,
- chipInputs, redeemScripts[inputIndex])
+ chipInputs, redeemScripts[inputIndex], version=tx.version)
# we don't set meaningful outputAddress, amount and fees
# as we only care about the alternateEncoding==True branch
outputData = self.get_client().finalizeInput(b'', 0, 0, changePath, bfh(rawTx))
@@ -456,7 +456,7 @@ class Ledger_KeyStore(Hardware_KeyStore):
while inputIndex < len(inputs):
singleInput = [ chipInputs[inputIndex] ]
self.get_client().startUntrustedTransaction(False, 0,
- singleInput, redeemScripts[inputIndex])
+ singleInput, redeemScripts[inputIndex], version=tx.version)
inputSignature = self.get_client().untrustedHashSign(inputsPaths[inputIndex], pin, lockTime=tx.locktime)
inputSignature[0] = 0x30 # force for 1.4.9+
signatures.append(inputSignature)
@@ -464,7 +464,7 @@ class Ledger_KeyStore(Hardware_KeyStore):
else:
while inputIndex < len(inputs):
self.get_client().startUntrustedTransaction(firstTransaction, inputIndex,
- chipInputs, redeemScripts[inputIndex])
+ chipInputs, redeemScripts[inputIndex], version=tx.version)
# we don't set meaningful outputAddress, amount and fees
# as we only care about the alternateEncoding==True branch
outputData = self.get_client().finalizeInput(b'', 0, 0, changePath, bfh(rawTx))