Skip to content

Commit

Permalink
Merge pull request #470 from klim0v/v1.2.1
Browse files Browse the repository at this point in the history
refactor
  • Loading branch information
danil-lashin authored Nov 12, 2020
2 parents 4551fa3 + a666935 commit 9eec1b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cli/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/wrapperspb"
"math/big"
"runtime"
"time"
)
Expand Down Expand Up @@ -78,7 +79,7 @@ func (m *managerServer) Dashboard(_ *empty.Empty, stream pb.ManagerService_Dashb
if candidate == nil {
pbValidatorStatus = pb.DashboardResponse_NotDeclared
} else {
stake = candidate.GetTotalBipStake().String()
stake = big.NewInt(0).Div(candidate.GetTotalBipStake(), big.NewInt(1e18)).String() + " BIP"
if candidate.Status == candidates.CandidateStatusOffline {
pbValidatorStatus = pb.DashboardResponse_Offline
} else {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.15
replace github.com/tendermint/iavl v0.14.2 => github.com/klim0v/iavl v0.14.3-0.20201110164659-796d4a97759a

require (
github.com/MinterTeam/node-grpc-gateway v1.2.1-0.20201105130854-87a7f4ef17cd
github.com/MinterTeam/node-grpc-gateway v1.2.1
github.com/btcsuite/btcd v0.20.1-beta
github.com/c-bata/go-prompt v0.2.3
github.com/go-kit/kit v0.10.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg=
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/MinterTeam/node-grpc-gateway v1.2.1-0.20201105130854-87a7f4ef17cd h1:DPwTM5jbZ+3GQgXzjzGq4yB5Hjvqr64yZXpssz5jvgc=
github.com/MinterTeam/node-grpc-gateway v1.2.1-0.20201105130854-87a7f4ef17cd/go.mod h1:oyBmm4OA4XyHpfbz7gHmP4j82qO3Xb2Z31hydzP192w=
github.com/MinterTeam/node-grpc-gateway v1.2.1 h1:Y+86Sc3WpGbdiDZLI7DyEUS7Y3qaNUtXjYMzRBhsDmE=
github.com/MinterTeam/node-grpc-gateway v1.2.1/go.mod h1:oyBmm4OA4XyHpfbz7gHmP4j82qO3Xb2Z31hydzP192w=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
Expand Down

0 comments on commit 9eec1b3

Please sign in to comment.