URI: 
       tMerge pull request #2283 from btchip/ledger-cpfp-fix - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 8c42b9a8e8e4bd959d5d7d137015628f72331518
   DIR parent 31cd9753aad82de5e02c6379a78e6feea8e89f44
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sat, 11 Mar 2017 14:22:23 +0100
       
       Merge pull request #2283 from btchip/ledger-cpfp-fix
       
       Ledger : Fix CPFP on change
       Diffstat:
         M plugins/ledger/ledger.py            |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py
       t@@ -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