From 97605c58ef409f5c1c09023fd965347d054171c8 Mon Sep 17 00:00:00 2001 From: Jian Xiao <99709935+jianoaix@users.noreply.github.com> Date: Tue, 14 Nov 2023 10:19:28 -0800 Subject: [PATCH] Format the big.int (#25) --- disperser/dataapi/metrics_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disperser/dataapi/metrics_handlers.go b/disperser/dataapi/metrics_handlers.go index 066dbf95bd..41b3c12394 100644 --- a/disperser/dataapi/metrics_handlers.go +++ b/disperser/dataapi/metrics_handlers.go @@ -97,7 +97,7 @@ func (s *server) calculateTotalStake(operators []*Operator, blockNumber uint32) totalStake := big.NewInt(0) s.logger.Debug("Operator state:", "operatorId", operatorId, "num quorums", len(operatorState.Totals)) for quorumId, total := range operatorState.Totals { - s.logger.Debug("Operator stake:", "operatorId", operatorId, "quorum", quorumId, "stake", total.Stake) + s.logger.Debug("Operator stake:", "operatorId", operatorId, "quorum", quorumId, "stake", (*total.Stake).Int64()) totalStake.Add(totalStake, total.Stake) } totalStakeByOperatorChan <- totalStake