chore(code): Move mode check for effect handling in engine#942
chore(code): Move mode check for effect handling in engine#942ancazamfir wants to merge 13 commits intomainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #942 +/- ##
===========================
===========================
☔ View full report in Codecov by Sentry. |
| let should_broadcast = match &msg { | ||
| SignedConsensusMsg::Vote(_) => true, | ||
| _ => value_payload.include_proposal(), | ||
| }; |
There was a problem hiding this comment.
Let's refactor this into a function that we can use here and for the WAL below
There was a problem hiding this comment.
I think for the WAL we will have to remove the check when we fix #897. So we have three options
- refactor now and undo when we fix code: WAL scenarios for Proposal #897
- leave things as they are
- fix code: WAL scenarios for Proposal #897 in this PR
* Move proposal and vote signature verification in the engine * Cleanup Resume variants and updates to adr-004 * Move certificate verification in the engine
✅ Semver Check PassedGreat job! All semver violations have been resolved. This PR now complies with semantic versioning rules. If you made version updates, please ensure that:
|
|
I think this approach puts too much burden on users integrating at the core-consensus level, and we should postpone this until we have a higher-level wrapper around the core-consensus API. What do you think @ancazamfir? |
We should clarify with the integrators if this is the case. Having less Effects to implement is good but it comes at a cost of integrators having to verify all sigs before sending messages to core. But I assume core API integrators will look at the engine and see what they need to do. For me the bigger concern is that here we do the expensive checks early, for example before we verify that messages are for lower heights and discard. For that reason I would also move some of the checks in the engine...and then yes it's extra work on integration that need to be done and a wrapper would be good. |
|
Let's close this until we have a way to verify signatures for future heights in the engine, or we decide to optimistically verify with current height validator set. |
Closes: #XXX
PR author checklist
For all contributors
For external contributors