From 32d79763bfb2ab6952786bf590c3a65fd33eca50 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') diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index e43b672f7..df5f4385d 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -885,10 +885,10 @@ func RPCMarshalBlock(b *types.Block, inclTx bool, fullTx bool) (map[string]inter "timestamp": (*hexutil.Big)(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