From cc05b50ae422c16718ede4cb1da1ec70aa0791c7 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Fri, 28 Jun 2019 10:57:32 -0700 Subject: [PATCH] Fix merkle root for explorer --- api/service/explorer/structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/service/explorer/structs.go b/api/service/explorer/structs.go index bcec2fa7f..95025c298 100644 --- a/api/service/explorer/structs.go +++ b/api/service/explorer/structs.go @@ -78,7 +78,7 @@ func NewBlock(block *types.Block, height int) *Block { ID: block.Hash().Hex(), TXCount: strconv.Itoa(block.Transactions().Len()), Timestamp: strconv.Itoa(int(block.Time().Int64() * 1000)), - MerkleRoot: block.Hash().Hex(), + MerkleRoot: block.Root().Hex(), Bytes: strconv.Itoa(int(block.Size())), Signers: []string{}, ExtraData: string(block.Extra()),