dont save wallet on startup regardless of changes

This commit is contained in:
Lex Berezhny 2019-10-18 12:57:19 -04:00
parent 81ddf7e1d2
commit c448531551

View file

@ -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()