bugfix: referenced transactions
This commit is contained in:
@@ -119,8 +119,12 @@ class Wallet:
|
|||||||
if self.seed_version != SEED_VERSION:
|
if self.seed_version != SEED_VERSION:
|
||||||
raise ValueError("This wallet seed is deprecated. Please run upgrade.py for a diagnostic.")
|
raise ValueError("This wallet seed is deprecated. Please run upgrade.py for a diagnostic.")
|
||||||
|
|
||||||
for tx_hash in self.transactions.keys():
|
for tx_hash, tx in self.transactions.items():
|
||||||
self.update_tx_outputs(tx_hash)
|
if self.check_new_tx(tx_hash, tx):
|
||||||
|
self.update_tx_outputs(tx_hash)
|
||||||
|
else:
|
||||||
|
print_error("unreferenced tx", tx_hash)
|
||||||
|
self.transactions.pop(tx_hash)
|
||||||
|
|
||||||
|
|
||||||
def set_up_to_date(self,b):
|
def set_up_to_date(self,b):
|
||||||
|
|||||||
Reference in New Issue
Block a user