Browse Source

[tm-monitor] use pubkey.Equals() func instead of raw `==` (#2221)

pull/2224/head
bradyjoestar 6 years ago
committed by Anton Kaliaev
parent
commit
ed08ae7321
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      tools/tm-monitor/monitor/node.go

+ 1
- 2
tools/tm-monitor/monitor/node.go View File

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


Loading…
Cancel
Save