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,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):