mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
fix #4080
This commit is contained in:
parent
df6f950b2d
commit
c13e057701
1 changed files with 8 additions and 0 deletions
|
@ -200,6 +200,8 @@ class Abstract_Wallet(PrintError):
|
|||
self.load_transactions()
|
||||
self.build_spent_outpoints()
|
||||
|
||||
self.test_addresses_sanity()
|
||||
|
||||
# load requests
|
||||
self.receive_requests = self.storage.get('payment_requests', {})
|
||||
|
||||
|
@ -329,6 +331,12 @@ class Abstract_Wallet(PrintError):
|
|||
self.receiving_addresses = d.get('receiving', [])
|
||||
self.change_addresses = d.get('change', [])
|
||||
|
||||
def test_addresses_sanity(self):
|
||||
addrs = self.get_receiving_addresses()
|
||||
if len(addrs) > 0:
|
||||
if not bitcoin.is_address(addrs[0]):
|
||||
raise Exception('The addresses in this wallet are not bitcoin addresses.')
|
||||
|
||||
def synchronize(self):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue