From 2e27ead7ee8c6e34a888dd02db3274b571c5555e Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 11 Apr 2022 14:29:30 +0000 Subject: [PATCH] Disable `addCatchUpResponse` - Not implemented yet (see #1531) - Can be a possible memory leak --- lib/grandpa/message_tracker.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/grandpa/message_tracker.go b/lib/grandpa/message_tracker.go index 425d063051f..af5d6475488 100644 --- a/lib/grandpa/message_tracker.go +++ b/lib/grandpa/message_tracker.go @@ -76,10 +76,11 @@ func (t *tracker) addCommit(cm *CommitMessage) { t.commitMessages[cm.Vote.Hash] = cm } -func (t *tracker) addCatchUpResponse(cr *CatchUpResponse) { +func (t *tracker) addCatchUpResponse(cr *CatchUpResponse) { //nolint:unparam t.catchUpResponseMessageMutex.Lock() defer t.catchUpResponseMessageMutex.Unlock() - t.catchUpResponseMessages[cr.Round] = cr + // uncomment when usage is setup properly, see #1531 + // t.catchUpResponseMessages[cr.Round] = cr } func (t *tracker) handleBlocks() {