dont save wallet on startup regardless of changes
This commit is contained in:
parent
81ddf7e1d2
commit
c448531551
1 changed files with 3 additions and 2 deletions
|
@ -62,8 +62,9 @@ class Account(BaseAccount):
|
||||||
private_key = ecdsa.SigningKey.from_pem(private_key_pem, hashfunc=sha256)
|
private_key = ecdsa.SigningKey.from_pem(private_key_pem, hashfunc=sha256)
|
||||||
public_key_der = private_key.get_verifying_key().to_der()
|
public_key_der = private_key.get_verifying_key().to_der()
|
||||||
channel_keys[self.ledger.public_key_to_address(public_key_der)] = private_key_pem
|
channel_keys[self.ledger.public_key_to_address(public_key_der)] = private_key_pem
|
||||||
self.channel_keys = channel_keys
|
if self.channel_keys != channel_keys:
|
||||||
self.wallet.save()
|
self.channel_keys = channel_keys
|
||||||
|
self.wallet.save()
|
||||||
|
|
||||||
async def save_max_gap(self):
|
async def save_max_gap(self):
|
||||||
if issubclass(self.address_generator, HierarchicalDeterministic):
|
if issubclass(self.address_generator, HierarchicalDeterministic):
|
||||||
|
|
Loading…
Reference in a new issue