storage: fix convert_version_17 and add new test case
follow-up 121b8048b0
This commit is contained in:
@@ -399,11 +399,9 @@ class JsonDB(PrintError):
|
||||
|
||||
self.put('pruned_txo', None)
|
||||
|
||||
from .transaction import Transaction
|
||||
transactions = self.get('transactions', {}) # txid -> raw_tx
|
||||
transactions = self.get('transactions', {}) # txid -> Transaction
|
||||
spent_outpoints = defaultdict(dict)
|
||||
for txid, raw_tx in transactions.items():
|
||||
tx = Transaction(raw_tx)
|
||||
for txid, tx in transactions.items():
|
||||
for txin in tx.inputs():
|
||||
if txin['type'] == 'coinbase':
|
||||
continue
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user