From 42b9c99c938824bfb91bf7cb278f4762649cb920 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 17 May 2022 10:40:36 -0400 Subject: [PATCH] add check for blockid flag is commit --- internal/state/execution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/state/execution.go b/internal/state/execution.go index 45489a354..32236afcc 100644 --- a/internal/state/execution.go +++ b/internal/state/execution.go @@ -466,7 +466,7 @@ func buildExtendedCommitInfo(ec *types.ExtendedCommit, store Store, initialHeigh } var ext []byte - if ap.VoteExtensionsEnabled(ec.Height) { + if ap.VoteExtensionsEnabled(ec.Height) && ecs.BlockIDFlag == types.BlockIDFlagCommit { if err := ecs.EnsureExtension(); err != nil { panic(fmt.Errorf("commit at height %d received with missing vote extensions data", ec.Height)) }