aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-26 10:28:42 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit061b01e5cfebe19b9fbea31c6a5c8dbd1c1c368e (patch)
treee90d8ba6704129856575338a954d121ab87010e2 /internal
parentf1efcb07ec8083f832e65bf35d8d687214f095d4 (diff)
downloaddexon-061b01e5cfebe19b9fbea31c6a5c8dbd1c1c368e.tar
dexon-061b01e5cfebe19b9fbea31c6a5c8dbd1c1c368e.tar.gz
dexon-061b01e5cfebe19b9fbea31c6a5c8dbd1c1c368e.tar.bz2
dexon-061b01e5cfebe19b9fbea31c6a5c8dbd1c1c368e.tar.lz
dexon-061b01e5cfebe19b9fbea31c6a5c8dbd1c1c368e.tar.xz
dexon-061b01e5cfebe19b9fbea31c6a5c8dbd1c1c368e.tar.zst
dexon-061b01e5cfebe19b9fbea31c6a5c8dbd1c1c368e.zip
dex: return round in get block rpc output
Diffstat (limited to 'internal')
-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 9390f5327..bd76d5e79 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),
}