Browse Source
Merge pull request #3191 from SomberNight/import_addr_valid_addr
fix: import_address() for Imported_Wallet
3.0.x
ThomasV
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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] = {} |
|
|