We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getMessageForBlockHash
1 parent fcc591d commit 694cde9Copy full SHA for 694cde9
lib/grandpa/tracker_commits.go
@@ -95,9 +95,10 @@ func (ct *commitsTracker) delete(blockHash common.Hash) {
95
delete(ct.mapping, blockHash)
96
}
97
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.
+// getMessageForBlockHash returns a pointer to the
+// commit message for a particular block hash from
+// the tracker. It returns nil if the block hash
101
+// does not exist in the tracker
102
func (ct *commitsTracker) getMessageForBlockHash(
103
blockHash common.Hash) (message *CommitMessage) {
104
data, ok := ct.mapping[blockHash]
0 commit comments