fix additional nil pointer

This commit is contained in:
William Banfield
2022-05-20 11:37:04 -04:00
parent 01ca403e0e
commit a53d7a3f0c

View File

@@ -590,10 +590,6 @@ func (r *Reactor) poolRoutine(ctx context.Context, stateSynced bool, blockSyncCh
if err == nil && state.ConsensusParams.ABCI.VoteExtensionsEnabled(first.Height) {
// if vote extensions were required at this height, ensure they exist.
err = extCommit.EnsureExtensions()
} else if err == nil && !state.ConsensusParams.ABCI.VoteExtensionsEnabled(extCommit.Height) {
if stripped := extCommit.StripExtensions(); stripped {
r.logger.Error("commit included extension data but vote extensions are not enabled")
}
}
// If either of the checks failed we log the error and request for a new block
// at that height