electrum

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

commit 3fdfd23ca995893390f6ce77f468f91f3b4f33fc
parent dd8493f97e0b4c6db3b6b4d8b0bf74ed6c5c60be
Author: ThomasV <thomasv@gitorious>
Date:   Thu, 28 May 2015 15:27:22 +0200

add check in importprivkey

Diffstat:
Mlib/commands.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/commands.py b/lib/commands.py @@ -277,6 +277,7 @@ class Commands: return s.encode('utf8') def importprivkey(self, sec): + assert self.wallet.can_import() try: addr = self.wallet.import_key(sec,self.password) out = "Keypair imported: ", addr