1
0

storage: fix convert_version_17 and add new test case

follow-up 121b8048b0
This commit is contained in:
SomberNight
2019-03-01 19:46:23 +01:00
parent ef8d7e3227
commit 9ecb504739
2 changed files with 19 additions and 4 deletions

View File

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