electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit a1baf860b6fadeb0cf1c0a0083fff1341954b572
parent 67a5f2e09ac8d4fde67dfdd1df987a57aea5b906
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 15 Jul 2020 23:50:26 +0200

wallet.set_up_to_date: (trivial) reduce log spam

Diffstat:
Melectrum/address_synchronizer.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py @@ -617,10 +617,12 @@ class AddressSynchronizer(Logger): def set_up_to_date(self, up_to_date): with self.lock: + status_changed = self.up_to_date != up_to_date self.up_to_date = up_to_date if self.network: self.network.notify('status') - self.logger.info(f'set_up_to_date: {up_to_date}') + if status_changed: + self.logger.info(f'set_up_to_date: {up_to_date}') def is_up_to_date(self): with self.lock: return self.up_to_date