aboutsummaryrefslogtreecommitdiffstats
path: root/internal/ethapi
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-20 17:26:32 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit1901a79cc82a0829c62d446d1cc3e16005240b7a (patch)
treee4327424a5d5d8b57e835b3331b943c4d5c9124a /internal/ethapi
parent174b8c3bc1202de027b62fb1d995df3c69bdb254 (diff)
downloaddexon-1901a79cc82a0829c62d446d1cc3e16005240b7a.tar
dexon-1901a79cc82a0829c62d446d1cc3e16005240b7a.tar.gz
dexon-1901a79cc82a0829c62d446d1cc3e16005240b7a.tar.bz2
dexon-1901a79cc82a0829c62d446d1cc3e16005240b7a.tar.lz
dexon-1901a79cc82a0829c62d446d1cc3e16005240b7a.tar.xz
dexon-1901a79cc82a0829c62d446d1cc3e16005240b7a.tar.zst
dexon-1901a79cc82a0829c62d446d1cc3e16005240b7a.zip
core: included Dexcon metadata in block
Diffstat (limited to 'internal/ethapi')
-rw-r--r--internal/ethapi/api.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index b024a7e3e..9390f5327 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -885,6 +885,8 @@ func RPCMarshalBlock(b *types.Block, inclTx bool, fullTx bool) (map[string]inter
"timestamp": (*hexutil.Big)(head.Time),
"transactionsRoot": head.TxHash,
"receiptsRoot": head.ReceiptHash,
+ "randomness": hexutil.Bytes(head.Randomness),
+ "dexconMeta": hexutil.Bytes(head.DexconMeta),
}
if inclTx {