electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e319f5e0ae01bb793a31cf88960f4d5d969b8f6f
parent 5278515afbd8393b8881e6b2ca83cf78ac1f3880
Author: Maran <maran.hidskes@gmail.com>
Date:   Mon, 17 Jun 2013 22:09:28 +0200

Save contacts to the proper key in the wallet. fixes #234

Diffstat:
Mlib/wallet.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -82,6 +82,7 @@ class Wallet: self.frozen_addresses = config.get('frozen_addresses',[]) self.prioritized_addresses = config.get('prioritized_addresses',[]) self.addressbook = config.get('contacts', []) + self.imported_keys = config.get('imported_keys',{}) self.history = config.get('addr_history',{}) # address -> list(txid, height) self.accounts = config.get('accounts', {}) # this should not include public keys @@ -425,7 +426,7 @@ class Wallet: def add_contact(self, address, label=None): self.addressbook.append(address) - self.config.set_key('addressbook', self.addressbook, True) + self.config.set_key('contacts', self.addressbook, True) if label: self.labels[address] = label self.config.set_key('labels', self.labels)