From dad59539b2a288ef2e427ef0b51cb6a8e135975a Mon Sep 17 00:00:00 2001 From: Ignat Kharlamov <kharlamov@mpdl.mpg.de> Date: Sun, 8 Sep 2024 18:13:57 +0000 Subject: [PATCH] Update service.go --- api/service/bloxberg/service.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/service/bloxberg/service.go b/api/service/bloxberg/service.go index 497c1c9..7de1384 100644 --- a/api/service/bloxberg/service.go +++ b/api/service/bloxberg/service.go @@ -166,7 +166,8 @@ func (sc *Service) processEvent() { websocketEventData.Blocks = append(websocketEventData.Blocks, websocket.BloxbergBlock{ ByteSize: block.ByteSize, InsertedAt: block.InsertedAt, - Miner: block.Miner, + //Miner: block.Miner, + Miner: sc.GetName(), MinerHash: block.MinerHash, Location: sc.geoInformation[block.MinerHash], }) @@ -177,7 +178,8 @@ func (sc *Service) processEvent() { websocketEventData.ConfirmedTransactions = append(websocketEventData.ConfirmedTransactions, websocket.BloxbergConfirmedTransaction{ TransactionFee: confirmedTransaction.TransactionFee, UpdatedAt: confirmedTransaction.UpdatedAt, - BlockMiner: confirmedTransaction.BlockMiner, + //BlockMiner: confirmedTransaction.BlockMiner, + BlockMiner: sc.GetName(), BlockMinerHash: confirmedTransaction.BlockMinerHash, Location: sc.geoInformation[confirmedTransaction.BlockMinerHash], }) -- GitLab