|
|
@ -418,7 +418,12 @@ class Ledger_KeyStore(Hardware_KeyStore): |
|
|
|
if segwitTransaction: |
|
|
|
self.get_client().startUntrustedTransaction(True, inputIndex, |
|
|
|
chipInputs, redeemScripts[inputIndex]) |
|
|
|
outputData = self.get_client().finalizeInputFull(txOutput) |
|
|
|
if changePath: |
|
|
|
# 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)) |
|
|
|
else: |
|
|
|
outputData = self.get_client().finalizeInputFull(txOutput) |
|
|
|
outputData['outputData'] = txOutput |
|
|
|
transactionOutput = outputData['outputData'] |
|
|
|
if outputData['confirmationNeeded']: |
|
|
@ -441,7 +446,12 @@ class Ledger_KeyStore(Hardware_KeyStore): |
|
|
|
while inputIndex < len(inputs): |
|
|
|
self.get_client().startUntrustedTransaction(firstTransaction, inputIndex, |
|
|
|
chipInputs, redeemScripts[inputIndex]) |
|
|
|
outputData = self.get_client().finalizeInputFull(txOutput) |
|
|
|
if changePath: |
|
|
|
# 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)) |
|
|
|
else: |
|
|
|
outputData = self.get_client().finalizeInputFull(txOutput) |
|
|
|
outputData['outputData'] = txOutput |
|
|
|
if firstTransaction: |
|
|
|
transactionOutput = outputData['outputData'] |
|
|
|