Skip to content

Commit

Permalink
Format the big.int (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix authored Nov 14, 2023
1 parent a5d003a commit 97605c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disperser/dataapi/metrics_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97605c5

Please sign in to comment.