aboutsummaryrefslogtreecommitdiffstats
path: root/internal
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-04-09 21:32:52 +0800
commit6e0cf992988f29daabd39e67f2f6ce8034ba4513 (patch)
treea60995a993cc0d5dd2c1a520f12243c78311a747 /internal
parentb109172d0141c704f90e0272dcab806791c4580b (diff)
downloaddexon-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')
-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 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 {