Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: VerifyCommitLight and VerifyCommitLightTrusting _never_ check all signatures #11

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

czarcas7ic
Copy link
Member


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@czarcas7ic czarcas7ic changed the title feat: skip verification of commit sigs feat: VerifyCommitLight and VerifyCommitLightTrusting _never_ check all signatures Feb 25, 2024
@@ -132,19 +132,19 @@ func (evpool *Pool) Update(state sm.State, ev types.EvidenceList) {

// AddEvidence checks the evidence is valid and adds it to the pool.
func (evpool *Pool) AddEvidence(ev types.Evidence) error {
evpool.logger.Debug("Attempting to add evidence", "ev", ev)
evpool.logger.Info("Attempting to add evidence", "ev", ev)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these really need to be info logs? If not im switching them back

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its fine to add them as Info, evidence is rare

@czarcas7ic czarcas7ic changed the base branch from adam/batch-verfy-backport to osmo/v0.37.4 February 25, 2024 22:14
@@ -373,7 +373,8 @@ 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.
err = state.Validators.VerifyCommitLight(
// TODO(sergio): Should we also validate against the extended commit?
err = state.Validators.VerifyCommitLightAllSignatures(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either we should undo this line, or backport https://github.com/cometbft/cometbft/pull/1858/files as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done here, will merge and backport after tests pass, thank you

e61ef5f

Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but see my comment

@czarcas7ic czarcas7ic added the S:backport/v23 backport to the osmo-v23/v0.37.4 branch label Feb 27, 2024
@czarcas7ic czarcas7ic merged commit fd03f91 into osmo/v0.37.4 Feb 27, 2024
15 checks passed
czarcas7ic added a commit that referenced this pull request Feb 27, 2024
feat: `VerifyCommitLight` and `VerifyCommitLightTrusting` _never_ check all signatures
czarcas7ic added a commit that referenced this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:backport/v23 backport to the osmo-v23/v0.37.4 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants