tmore efficient method for exporting private keys - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 31e265b11dfba8d079d7e11d76e8ab8e8cff6c8e DIR parent 999adc80afd3c530818a7d4892a155457c40033f HTML Author: thomasv <thomasv@gitorious> Date: Tue, 26 Feb 2013 16:29:23 +0100 more efficient method for exporting private keys Diffstat: M lib/gui_qt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py t@@ -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."))