git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
78a7481
)
can_import
author
ThomasV
<thomasv@gitorious>
Wed, 7 May 2014 09:53:32 +0000 (11:53 +0200)
committer
ThomasV
<thomasv@gitorious>
Wed, 7 May 2014 09:53:32 +0000 (11:53 +0200)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
ebd2429
..
4093762
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-1070,6
+1070,9
@@
class Abstract_Wallet:
d[k] = v.dump()
self.storage.put('accounts', d, True)
+ def can_import(self):
+ return not self.is_watching_only()
+
class Imported_Wallet(Abstract_Wallet):
@@
-1458,6
+1461,9
@@
class Wallet_2of2(NewWallet):
def can_create_accounts(self):
return False
+ def can_import(self):
+ return False
+
def create_account(self):
xpub1 = self.master_public_keys.get("m/")
xpub2 = self.master_public_keys.get("cold/")