diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-30 14:03:22 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:52 +0800 |
commit | 6e0cf992988f29daabd39e67f2f6ce8034ba4513 (patch) | |
tree | a60995a993cc0d5dd2c1a520f12243c78311a747 /internal/ethapi/api.go | |
parent | b109172d0141c704f90e0272dcab806791c4580b (diff) | |
download | dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.gz dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.bz2 dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.lz dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.xz dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.zst dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.zip |
core: fix blockReward serialization
Diffstat (limited to 'internal/ethapi/api.go')
-rw-r--r-- | internal/ethapi/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 93906f35f..8c950d5cf 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -894,10 +894,10 @@ func RPCMarshalBlock(b *types.Block, inclTx bool, fullTx bool) (map[string]inter "timestamp": hexutil.Uint64(head.Time), "transactionsRoot": head.TxHash, "receiptsRoot": head.ReceiptHash, + "reward": (*hexutil.Big)(head.Reward), "randomness": hexutil.Bytes(head.Randomness), "round": hexutil.Uint64(head.Round), "dexconMeta": hexutil.Bytes(head.DexconMeta), - "blockReward": (*hexutil.Big)(head.BlockReward), } if inclTx { |