aboutsummaryrefslogtreecommitdiffstats
path: root/internal
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-04-09 21:32:50 +0800
commit57e39b9f4813087014082d98f505631e616f0cb1 (patch)
tree14fc508ed9eff0496111faaf671ad979f7883bf5 /internal
parent7f18d9d9823e641360f3a98606b5f94256dd7182 (diff)
downloaddexon-57e39b9f4813087014082d98f505631e616f0cb1.tar
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.gz
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.bz2
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.lz
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.xz
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.zst
dexon-57e39b9f4813087014082d98f505631e616f0cb1.zip
core: included Dexcon metadata in block
Diffstat (limited to 'internal')
-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 097e83e3c..edfc2e8b5 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -894,6 +894,8 @@ func RPCMarshalBlock(b *types.Block, inclTx bool, fullTx bool) (map[string]inter
"timestamp": hexutil.Uint64(head.Time),
"transactionsRoot": head.TxHash,
"receiptsRoot": head.ReceiptHash,
+ "randomness": hexutil.Bytes(head.Randomness),
+ "dexconMeta": hexutil.Bytes(head.DexconMeta),
}
if inclTx {