|
|
@ -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)) |
|
|
|