From 9bbb3f81b39d2aa22cecab7d16080fa7f26ad911 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 3 Nov 2017 07:42:38 +0100 Subject: [PATCH] fix: import_address() for existing Imported_Wallet was willing to import anything --- lib/wallet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/wallet.py b/lib/wallet.py index 9e54c69e9..7b8085fad 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -1455,6 +1455,8 @@ class Imported_Wallet(Simple_Wallet): return [] def import_address(self, address): + if not bitcoin.is_address(address): + return '' if address in self.addresses: return '' self.addresses[address] = {}