tSave contacts to the proper key in the wallet. fixes #234 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e319f5e0ae01bb793a31cf88960f4d5d969b8f6f DIR parent 5278515afbd8393b8881e6b2ca83cf78ac1f3880 HTML 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: M lib/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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 t@@ -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)