From ec46cc40064684b59705b099b7e350cd20cbdcd1 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 13 May 2022 13:49:00 -0400 Subject: [PATCH] fix buildExtendedCommitInfo logic to allow default --- internal/state/execution.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/state/execution.go b/internal/state/execution.go index 53ce369e0..b7aa23b33 100644 --- a/internal/state/execution.go +++ b/internal/state/execution.go @@ -469,7 +469,8 @@ func buildExtendedCommitInfo(ec *types.ExtendedCommit, store Store, initialHeigh if ecs.BlockIDFlag == types.BlockIDFlagCommit { // We only care about vote extensions if a validator has voted to // commit. - if ecs.Extension == nil && ecs.ExtensionSignature == nil && ec.Height > extensionRequireHeight { + if ecs.Extension == nil && ecs.ExtensionSignature == nil && + extensionRequireHeight != 0 && ec.Height >= extensionRequireHeight { // TODO: this error is akward, make it better panic(fmt.Errorf("commit received with missing vote extension data")) }