From 6e0cf992988f29daabd39e67f2f6ce8034ba4513 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Tue, 30 Oct 2018 14:03:22 +0800 Subject: core: fix blockReward serialization --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/ethapi/api.go') 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 { -- cgit v1.2.3