From cb0a2ec70458acc967437c5bcb8c1c6c805a23e1 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Sun, 15 May 2022 23:10:32 -0400 Subject: [PATCH] use simpler check in blocksync reactor --- internal/blocksync/reactor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/blocksync/reactor.go b/internal/blocksync/reactor.go index 53d83eb99..1902780d6 100644 --- a/internal/blocksync/reactor.go +++ b/internal/blocksync/reactor.go @@ -557,7 +557,7 @@ func (r *Reactor) poolRoutine(ctx context.Context, stateSynced bool, blockSyncCh // validate the block before we persist it err = r.blockExec.ValidateBlock(ctx, state, first) } - if err == nil && state.ConsensusParams.Vote.RequireExtensions(state.LastBlockHeight+1) { + if err == nil && state.ConsensusParams.Vote.RequireExtensions(extCommit.Height) { // if vote extensions were required at this height, ensure they exist. err = extCommit.EnsureExtensions() }