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)
|
self.put('pruned_txo', None)
|
||||||
|
|
||||||
from .transaction import Transaction
|
transactions = self.get('transactions', {}) # txid -> Transaction
|
||||||
transactions = self.get('transactions', {}) # txid -> raw_tx
|
|
||||||
spent_outpoints = defaultdict(dict)
|
spent_outpoints = defaultdict(dict)
|
||||||
for txid, raw_tx in transactions.items():
|
for txid, tx in transactions.items():
|
||||||
tx = Transaction(raw_tx)
|
|
||||||
for txin in tx.inputs():
|
for txin in tx.inputs():
|
||||||
if txin['type'] == 'coinbase':
|
if txin['type'] == 'coinbase':
|
||||||
continue
|
continue
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user