From 5f1b306988f331695de76d4a1e6ff1ad26d83649 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Sat, 20 Oct 2018 17:26:32 +0800 Subject: core: included Dexcon metadata in block --- internal/ethapi/api.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal') 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 { -- cgit v1.2.3