mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-22 07:06:14 +00:00
use simpler check in blocksync reactor
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user