mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-19 13:46:17 +00:00
[tm-monitor] use pubkey.Equals() func instead of raw == (#2221)
This commit is contained in:
committed by
Anton Kaliaev
parent
3624a17642
commit
ed08ae7321
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user