From 7eb766144e622a06b3256adeb026913fe574a71f Mon Sep 17 00:00:00 2001 From: William Banfield Date: Mon, 7 Mar 2022 17:47:48 -0500 Subject: [PATCH] add todo for naked return --- internal/consensus/state.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index 23669c977..9f5778287 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -1346,6 +1346,10 @@ func (cs *State) isProposalComplete() bool { } +// TODO: createProposalBlock should not naked return +// It has two cases that appear to be error cases, but nothing is returned during +// these cases. + // Create the next block to propose and return it. Returns nil block upon error. // // We really only need to return the parts, but the block is returned for