From 73896bad720e979f30a6c50aa7939d0b6ba7957f Mon Sep 17 00:00:00 2001 From: Harm Aarts Date: Thu, 7 Jun 2018 10:45:55 +0200 Subject: [PATCH] Remove unused is_up_to_date network method --- lib/network.py | 3 --- lib/wallet.py | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/network.py b/lib/network.py index 2bdd798fe..2f83f57ec 100644 --- a/lib/network.py +++ b/lib/network.py @@ -315,9 +315,6 @@ class Network(util.DaemonThread): def is_connecting(self): return self.connection_status == 'connecting' - def is_up_to_date(self): - return self.unanswered_requests == {} - @with_interface_lock def queue_request(self, method, params, interface=None): # If you want to queue a request on any interface it must go diff --git a/lib/wallet.py b/lib/wallet.py index daa93d5e9..87131a4d0 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -218,10 +218,7 @@ class Abstract_Wallet(PrintError): self.load_unverified_transactions() self.remove_local_transactions_we_dont_have() - # There is a difference between wallet.up_to_date and network.is_up_to_date(). - # network.is_up_to_date() returns true when all requests have been answered and processed - # wallet.up_to_date is true when the wallet is synchronized (stronger requirement) - # Neither of them considers the verifier. + # wallet.up_to_date is true when the wallet is synchronized self.up_to_date = False # save wallet type the first time