1
0

add account menus and details window

This commit is contained in:
ThomasV
2013-09-24 16:55:25 +02:00
parent 2c0814f0d3
commit 4524c107cf
4 changed files with 74 additions and 2 deletions

View File

@@ -491,6 +491,20 @@ class Wallet:
raise BaseException("Address not found", address)
def get_roots(self, account):
roots = []
for a in account.split('&'):
s = a.strip()
m = re.match("(m/\d+'/)(\d+)", s)
roots.append( m.group(1) )
return roots
def is_seeded(self, account):
for root in self.get_roots(account):
if root not in self.master_private_keys.keys():
return False
return True
def rebase_sequence(self, account, sequence):
c, i = sequence
dd = []