Skip to content

Commit 42fe8a1

Browse files
committed
Fix getMessageForBlockHash comment
1 parent 98407db commit 42fe8a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/grandpa/tracker_commits.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ func (ct *commitsTracker) delete(blockHash common.Hash) {
9595
delete(ct.mapping, blockHash)
9696
}
9797

98-
// getMessageForBlockHash returns the commit messages
99-
// for a particular block hash from the tracker.
100-
// It returns nil if the block hash does not exist.
98+
// getMessageForBlockHash returns a pointer to the
99+
// commit message for a particular block hash from
100+
// the tracker. It returns nil if the block hash
101+
// does not exist in the tracker
101102
func (ct *commitsTracker) getMessageForBlockHash(
102103
blockHash common.Hash) (message *CommitMessage) {
103104
data, ok := ct.mapping[blockHash]

0 commit comments

Comments
 (0)