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@byzantine-lab.io>2019-06-12 17:27:17 +0800
commit35db267fc287eea05d0163ec460293761f5c9243 (patch)
treee9cd8ed13d7b9e6376a019680fd3a27acca3f2c5 /internal
parent8a247252263a9bcc23830217b0c108b2fdd0b84b (diff)
downloadgo-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar
go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.gz
go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.bz2
go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.lz
go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.xz
go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.zst
go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.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 {