diff --git a/lib/wallet.py b/lib/wallet.py index 2306511f6..0ce765316 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -1126,7 +1126,7 @@ class Abstract_Wallet(PrintError): domain = self.get_receiving_addresses() choice = domain[0] for addr in domain: - if addr not in self.history.keys(): + if not self.history.get(addr): if addr not in self.receive_requests.keys(): return addr else: