-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
VerifyCommitLight
and VerifyCommitLightTrusting
_never_ check all signatures
@@ -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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
blocksync/reactor.go
Outdated
@@ -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( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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
feat: `VerifyCommitLight` and `VerifyCommitLightTrusting` _never_ check all signatures
…ckport-2" This reverts commit a4c5674.
PR checklist
.changelog
(we use unclog to manage our changelog)docs/
orspec/
) and code comments