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,6 +62,7 @@ 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
|
||||||
|
if self.channel_keys != channel_keys:
|
||||||
self.channel_keys = channel_keys
|
self.channel_keys = channel_keys
|
||||||
self.wallet.save()
|
self.wallet.save()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue