Skip to content

Commit

Permalink
Allow blocksync to not verify all signatures (cometbft#1858)
Browse files Browse the repository at this point in the history
* Blocksync can skip sigs

* bump

(cherry picked from commit 9446e31)

# Conflicts:
#	blocksync/reactor.go
  • Loading branch information
sergio-mena authored and mergify[bot] committed Dec 20, 2023
1 parent cde066f commit 4f2a211
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blocksync/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,12 @@ FOR_LOOP:
// NOTE: we can probably make this more efficient, but note that calling
// first.Hash() doesn't verify the tx contents, so MakePartSet() is
// currently necessary.
<<<<<<< HEAD:blocksync/reactor.go
err = state.Validators.VerifyCommitLightAllSignatures(
=======
// TODO(sergio): Should we also validate against the extended commit?
err = state.Validators.VerifyCommitLight(
>>>>>>> 9446e3135 (Allow blocksync to not verify all signatures (#1858)):internal/blocksync/reactor.go
chainID, firstID, first.Height, second.LastCommit)

if err == nil {
Expand Down

0 comments on commit 4f2a211

Please sign in to comment.