From 98f614a614a0dae32bc9d45e985b639ad663c0f5 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 17 May 2022 21:49:58 -0400 Subject: [PATCH] use current block height as parameter in blocksync --- 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 803e5ca90..a0caa803d 100644 --- a/internal/blocksync/reactor.go +++ b/internal/blocksync/reactor.go @@ -604,7 +604,7 @@ func (r *Reactor) poolRoutine(ctx context.Context, stateSynced bool, blockSyncCh r.pool.PopRequest() // TODO: batch saves so we do not persist to disk every block - if state.ConsensusParams.ABCI.VoteExtensionsEnabled(state.LastBlockHeight) { + if state.ConsensusParams.ABCI.VoteExtensionsEnabled(first.Height) { r.store.SaveBlockWithExtendedCommit(first, firstParts, extCommit) } else { r.store.SaveBlock(first, firstParts, extCommit.ToCommit())