aboutsummaryrefslogtreecommitdiffstats
path: root/internal/ethapi/api.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-26 10:28:42 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commitdb0d065425da1e649381eefc33a05b5217a0f2b1 (patch)
tree7e23466da15c468600a8bca58bf177fc61a3ebf7 /internal/ethapi/api.go
parentbb77ebf738dbc9937eb289092a30c0a785ccd515 (diff)
downloaddexon-db0d065425da1e649381eefc33a05b5217a0f2b1.tar
dexon-db0d065425da1e649381eefc33a05b5217a0f2b1.tar.gz
dexon-db0d065425da1e649381eefc33a05b5217a0f2b1.tar.bz2
dexon-db0d065425da1e649381eefc33a05b5217a0f2b1.tar.lz
dexon-db0d065425da1e649381eefc33a05b5217a0f2b1.tar.xz
dexon-db0d065425da1e649381eefc33a05b5217a0f2b1.tar.zst
dexon-db0d065425da1e649381eefc33a05b5217a0f2b1.zip
dex: return round in get block rpc output
Diffstat (limited to 'internal/ethapi/api.go')
-rw-r--r--internal/ethapi/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index 557e0eb3c..12a8316b7 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -886,6 +886,7 @@ func RPCMarshalBlock(b *types.Block, inclTx bool, fullTx bool) (map[string]inter
"transactionsRoot": head.TxHash,
"receiptsRoot": head.ReceiptHash,
"randomness": hexutil.Bytes(head.Randomness),
+ "round": hexutil.Uint64(head.Round),
"dexconMeta": hexutil.Bytes(head.DexconMeta),
}