Add comparison handling to Block, fix reward type

This commit is contained in:
Michał Sałaban 2020-01-24 12:38:33 +01:00
parent 1b503fd0ab
commit c6256fe4e1
5 changed files with 83 additions and 6 deletions

View file

@ -115,7 +115,7 @@ class JSONRPCDaemon(object):
'nonce': bhdr['nonce'],
'orphan': bhdr['orphan_status'],
'prev_hash': bhdr['prev_hash'],
'reward': bhdr['reward'],
'reward': from_atomic(bhdr['reward']),
'transactions': self.transactions(
[bhdr['miner_tx_hash']] + sub_json['tx_hashes']),
}