Browse Source

[monitor] fix linter error

pull/1943/head
Anton Kaliaev 7 years ago
parent
commit
585b163d94
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      tm-monitor/monitor/node.go

+ 3
- 2
tm-monitor/monitor/node.go View File

@ -214,8 +214,9 @@ func (n *Node) checkIsValidator() {
_, validators, err := n.validators()
if err == nil {
for _, v := range validators {
key, err := n.getPubKey()
if err == nil && v.PubKey == key {
key, err1 := n.getPubKey()
// TODO: use bytes.Equal
if err1 == nil && v.PubKey == key {
n.IsValidator = true
}
}


Loading…
Cancel
Save