From ba649d4b942268c0db77951b8df85c53f50c40db Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 20 Jul 2020 14:24:53 -0400 Subject: [PATCH] convert modified_on timestamp to int to avoid floating point conflicts when syncing --- lbry/wallet/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/account.py b/lbry/wallet/account.py index fdefde985..3af07cfe4 100644 --- a/lbry/wallet/account.py +++ b/lbry/wallet/account.py @@ -311,7 +311,7 @@ class Account: private_key=private_key, public_key=public_key, address_generator=d.get('address_generator', {}), - modified_on=d.get('modified_on', time.time()), + modified_on=d.get('modified_on', int(time.time())), channel_keys=d.get('certificates', {}) ) @@ -343,7 +343,7 @@ class Account: def merge(self, d: dict): if d.get('modified_on', 0) > self.modified_on: self.name = d['name'] - self.modified_on = d.get('modified_on', time.time()) + self.modified_on = d.get('modified_on', int(time.time())) assert self.address_generator.name == d['address_generator']['name'] for chain_name in ('change', 'receiving'): if chain_name in d['address_generator']: