mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 22:21:21 +00:00
Fix some CI bot nits
This commit is contained in:
parent
02c467237e
commit
d15f0f8df0
@ -111,7 +111,7 @@ func (cp concurrentProvider) joinConcurrency(chainID string, height int64) (uniq
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cp concurrentProvider) UpdateToHeight(chainID string, height int64) error {
|
func (cp *concurrentProvider) UpdateToHeight(chainID string, height int64) error {
|
||||||
|
|
||||||
// Performs synchronization for multi-threads verification at the same height.
|
// Performs synchronization for multi-threads verification at the same height.
|
||||||
var presult *pendingResult
|
var presult *pendingResult
|
||||||
|
@ -412,7 +412,7 @@ func (h *Header) Equal(h2 *Header) bool {
|
|||||||
panic("incomplete heaeders cannot be compared")
|
panic("incomplete heaeders cannot be compared")
|
||||||
}
|
}
|
||||||
h2Hash := h2.Hash()
|
h2Hash := h2.Hash()
|
||||||
return bytes.Compare(h1Hash, h2Hash) == 0
|
return bytes.Equal(h1Hash, h2Hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hash returns the hash of the header.
|
// Hash returns the hash of the header.
|
||||||
@ -708,7 +708,7 @@ func (commit *Commit) Equal(commit2 *Commit) bool {
|
|||||||
panic("incomplete commit cannot be compared")
|
panic("incomplete commit cannot be compared")
|
||||||
}
|
}
|
||||||
c2Hash := commit2.Hash()
|
c2Hash := commit2.Hash()
|
||||||
return bytes.Compare(c1Hash, c2Hash) == 0
|
return bytes.Equal(c1Hash, c2Hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hash returns the hash of the commit
|
// Hash returns the hash of the commit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user