Add compatibility to old transactions

This commit is contained in:
Philippe Dumonet 2020-06-06 22:10:11 +02:00 committed by GitHub
parent 6a8c4e8cd7
commit ae32ca0f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class JSONRPCDaemon(object):
txs = []
for tx in res.get('txs', []):
as_json = json.loads(tx['as_json'])
fee = as_json['rct_signatures'].get('txnFee')
fee = as_json.get('rct_signatures', {}).get('txnFee')
txs.append(Transaction(
hash=tx['tx_hash'],
fee=from_atomic(fee) if fee else None,