mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-29 20:51:45 +00:00
update some comments
This commit is contained in:
@ -124,7 +124,7 @@ func (b *Block) MakePartSet(partSize int) *PartSet {
|
||||
}
|
||||
|
||||
// HashesTo is a convenience function that checks if a block hashes to the given argument.
|
||||
// A nil block never hashes to anything, and nothing hashes to a nil hash.
|
||||
// Returns false if the block is nil or the hash is empty.
|
||||
func (b *Block) HashesTo(hash []byte) bool {
|
||||
if len(hash) == 0 {
|
||||
return false
|
||||
|
Reference in New Issue
Block a user