aboutsummaryrefslogtreecommitdiffstats
path: root/internal/ethapi
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-30 14:03:22 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit32d79763bfb2ab6952786bf590c3a65fd33eca50 (patch)
tree1fe752f3cea2fe82370ac8cfba7d6fd9e5097aaf /internal/ethapi
parent07c599fec712ff4af9725bcd0db1a55bcb81bea1 (diff)
downloaddexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.gz
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.bz2
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.lz
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.xz
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.zst
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.zip
core: fix blockReward serialization
Diffstat (limited to 'internal/ethapi')
-rw-r--r--internal/ethapi/api.go2
1 files changed, 1 insertions, 1 deletions
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 {