|
|
@ -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 |
|
|
|
|
|
|
|