Browse Source

get_pubkeys is called incorrectly in get_pubkey_from_xpub()

283
ukurokawa 10 years ago
parent
commit
950dc2c685
  1. 2
      lib/account.py

2
lib/account.py

@ -306,7 +306,7 @@ class BIP32_Account(Account):
def get_pubkey_from_xpub(self, xpub, for_change, n): def get_pubkey_from_xpub(self, xpub, for_change, n):
xpubs = self.get_master_pubkeys() xpubs = self.get_master_pubkeys()
i = xpubs.index(xpub) i = xpubs.index(xpub)
pubkeys = self.get_pubkeys(sequence, n) pubkeys = self.get_pubkeys(for_change, n)
return pubkeys[i] return pubkeys[i]
def derive_pubkeys(self, for_change, n): def derive_pubkeys(self, for_change, n):

Loading…
Cancel
Save