electrum

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

commit 31e265b11dfba8d079d7e11d76e8ab8e8cff6c8e
parent 999adc80afd3c530818a7d4892a155457c40033f
Author: thomasv <thomasv@gitorious>
Date:   Tue, 26 Feb 2013 16:29:23 +0100

more efficient method for exporting private keys

Diffstat:
Mlib/gui_qt.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/gui_qt.py b/lib/gui_qt.py @@ -1760,9 +1760,9 @@ class ElectrumWindow(QMainWindow): transaction = csv.writer(csvfile) transaction.writerow(["address", "private_key"]) - for addr in self.wallet.all_addresses(): - m_addr = "%34s"%addr - transaction.writerow([m_addr, str(self.wallet.get_private_key(addr, password))]) + + for addr, pk in self.wallet.get_private_keys(self.wallet.all_addresses(), password).items(): + transaction.writerow(["%34s"%addr,pk]) self.show_message(_("Private keys exported."))