Merge pull request #3191 from SomberNight/import_addr_valid_addr

fix: import_address() for Imported_Wallet
This commit is contained in:
ThomasV 2017-11-03 09:10:14 +01:00 committed by GitHub
commit ca11929de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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