tMerge pull request #5628 from TheCharlatan/fixMultisigDigitalBitBox - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ddcd77ab3656797243cf245a51fcc832b1d3d6c4 DIR parent 64deb87ade6d2cad0501b50086c7ac595d6a2a28 HTML Author: ghost43 <somber.night@protonmail.com> Date: Mon, 9 Sep 2019 14:37:17 +0000 Merge pull request #5628 from TheCharlatan/fixMultisigDigitalBitBox Digital BitBox: Fix sending to self Diffstat: M electrum/plugins/digitalbitbox/dig… | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) --- DIR diff --git a/electrum/plugins/digitalbitbox/digitalbitbox.py b/electrum/plugins/digitalbitbox/digitalbitbox.py t@@ -570,11 +570,12 @@ class DigitalBitbox_KeyStore(Hardware_KeyStore): assert o.type == TYPE_ADDRESS info = tx.output_info.get(o.address) if info is not None: - index = info.address_index - changePath = self.get_derivation() + "/%d/%d" % index - changePubkey = self.derive_pubkey(index[0], index[1]) - pubkeyarray_i = {'pubkey': changePubkey, 'keypath': changePath} - pubkeyarray.append(pubkeyarray_i) + if info.is_change: + index = info.address_index + changePath = self.get_derivation() + "/%d/%d" % index + changePubkey = self.derive_pubkey(index[0], index[1]) + pubkeyarray_i = {'pubkey': changePubkey, 'keypath': changePath} + pubkeyarray.append(pubkeyarray_i) # Special serialization of the unsigned transaction for # the mobile verification app.