Browse Source

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

3.0.x
SomberNight 7 years ago
parent
commit
9bbb3f81b3
  1. 2
      lib/wallet.py

2
lib/wallet.py

@ -1455,6 +1455,8 @@ class Imported_Wallet(Simple_Wallet):
return [] return []
def import_address(self, address): def import_address(self, address):
if not bitcoin.is_address(address):
return ''
if address in self.addresses: if address in self.addresses:
return '' return ''
self.addresses[address] = {} self.addresses[address] = {}

Loading…
Cancel
Save