add check in importprivkey

This commit is contained in:
ThomasV 2015-05-28 15:27:22 +02:00
parent dd8493f97e
commit 3fdfd23ca9
1 changed files with 1 additions and 0 deletions

View File

@ -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