use current block height as parameter in blocksync

This commit is contained in:
William Banfield
2022-05-17 21:49:58 -04:00
parent 6f577fa389
commit 98f614a614
+1 -1
View File
@@ -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())