|
@ -94,7 +94,7 @@ class Wallet: |
|
|
self.accounts = config.get('accounts', {}) # this should not include public keys |
|
|
self.accounts = config.get('accounts', {}) # this should not include public keys |
|
|
|
|
|
|
|
|
self.sequences = {} |
|
|
self.sequences = {} |
|
|
self.sequences[0] = DeterministicSequence(self.config.get('master_public_key')) |
|
|
self.sequences[0] = ElectrumSequence(self.config.get('master_public_key')) |
|
|
|
|
|
|
|
|
if self.accounts.get(0) is None: |
|
|
if self.accounts.get(0) is None: |
|
|
self.accounts[0] = { 0:[], 1:[], 'name':'Main account' } |
|
|
self.accounts[0] = { 0:[], 1:[], 'name':'Main account' } |
|
@ -162,9 +162,9 @@ class Wallet: |
|
|
self.config.set_key('seed', self.seed, True) |
|
|
self.config.set_key('seed', self.seed, True) |
|
|
self.config.set_key('seed_version', self.seed_version, True) |
|
|
self.config.set_key('seed_version', self.seed_version, True) |
|
|
|
|
|
|
|
|
mpk = DeterministicSequence.mpk_from_seed(self.seed) |
|
|
mpk = ElectrumSequence.mpk_from_seed(self.seed) |
|
|
self.config.set_key('master_public_key', mpk, True) |
|
|
self.config.set_key('master_public_key', mpk, True) |
|
|
self.sequences[0] = DeterministicSequence(mpk) |
|
|
self.sequences[0] = ElectrumSequence(mpk) |
|
|
|
|
|
|
|
|
self.accounts[0] = { 0:[], 1:[], 'name':'Main account' } |
|
|
self.accounts[0] = { 0:[], 1:[], 'name':'Main account' } |
|
|
self.config.set_key('accounts', self.accounts, True) |
|
|
self.config.set_key('accounts', self.accounts, True) |
|
|