From 65cd2ec9b968b91a9cc5fb9c1780456bd0d81d9d Mon Sep 17 00:00:00 2001 From: thomasv Date: Fri, 4 May 2012 11:14:07 +0200 Subject: [PATCH] document the distinction between up_to_date and is_up_to_date --- wallet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wallet.py b/wallet.py index 1cce9fe7..fd3fa52b 100644 --- a/wallet.py +++ b/wallet.py @@ -277,6 +277,10 @@ class Wallet: self.was_updated = True self.blocks = -1 self.banner = '' + + # there is a difference between self.up_to_date and self.is_up_to_date() + # self.is_up_to_date() returns true when all requests have been answered and processed + # self.up_to_date is true when the wallet is synchronized (stronger requirement) self.up_to_date_event = threading.Event() self.up_to_date_event.clear() self.up_to_date = False