Browse Source

Merge pull request #2283 from btchip/ledger-cpfp-fix

Ledger : Fix CPFP on change
283
ThomasV 8 years ago
committed by GitHub
parent
commit
8c42b9a8e8
  1. 2
      plugins/ledger/ledger.py

2
plugins/ledger/ledger.py

@ -318,7 +318,7 @@ class Ledger_KeyStore(Hardware_KeyStore):
for _type, address, amount in tx.outputs():
assert _type == TYPE_ADDRESS
info = tx.output_info.get(address)
if info is not None:
if (info is not None) and (len(tx.outputs()) != 1):
index, xpubs, m = info
changePath = self.get_derivation()[2:] + "/%d/%d"%index
changeAmount = amount

Loading…
Cancel
Save