fix: import_address() for existing Imported_Wallet was willing to import anything

This commit is contained in:
SomberNight 2017-11-03 07:42:38 +01:00
parent 7e4e96e5eb
commit 9bbb3f81b3

View File

@ -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] = {}