From aa7434bdaa27b63a78c74ea03098082f4e9d442e Mon Sep 17 00:00:00 2001 From: BTChip Date: Sat, 11 Mar 2017 13:13:20 +0100 Subject: [PATCH] Fix CPFP on change --- plugins/ledger/ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py index 5bcb1a715..5e87d2b11 100644 --- a/plugins/ledger/ledger.py +++ b/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