Remove unused is_up_to_date network method

This commit is contained in:
Harm Aarts 2018-06-07 10:45:55 +02:00
parent 48356a03e6
commit 73896bad72
2 changed files with 1 additions and 7 deletions

View file

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

View file

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