-
Notifications
You must be signed in to change notification settings - Fork 28
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: adding consensus manager to main node function #496
Conversation
Benchmark movements: |
Benchmark movements: |
04153fb
to
7aea502
Compare
Benchmark movements: |
Benchmark movements: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #496 +/- ##
==========================================
- Coverage 76.79% 76.77% -0.02%
==========================================
Files 348 349 +1
Lines 36340 36387 +47
Branches 36340 36387 +47
==========================================
+ Hits 27906 27936 +30
- Misses 6140 6153 +13
- Partials 2294 2298 +4 ☔ View full report in Codecov by Sentry. |
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.
Reviewable status: 0 of 8 files reviewed, all discussions resolved
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.
Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @lev-starkware)
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.
Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @lev-starkware)
crates/mempool_node/src/communication.rs
line 82 at r1 (raw file):
pub struct MempoolNodeClients { batcher_client: Option<SharedBatcherClient>, consensus_manager_client: Option<SharedConsensusManagerClient>,
Why does the mempool hold a consensus client? If there is a consensus client I need to understand what we expect the server to supply.
Code quote:
consensus_manager_client: Option<SharedConsensusManagerClient
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @matan-starkware)
crates/mempool_node/src/communication.rs
line 82 at r1 (raw file):
Previously, matan-starkware wrote…
Why does the mempool hold a consensus client? If there is a consensus client I need to understand what we expect the server to supply.
It's not a mempool. This structure holds all clients for the mempool node to use in creating components in the latter stage.
In any case, when we talked, you said that Sync would need to communicate with the Consensus so it, probably, would receive this client (in the future). The client itself is already defined in consensus_manager_types/communication.rs. And currently, it's only some template.
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @lev-starkware)
crates/mempool_node/src/communication.rs
line 82 at r1 (raw file):
Previously, lev-starkware wrote…
It's not a mempool. This structure holds all clients for the mempool node to use in creating components in the latter stage.
In any case, when we talked, you said that Sync would need to communicate with the Consensus so it, probably, would receive this client (in the future). The client itself is already defined in consensus_manager_types/communication.rs. And currently, it's only some template.
Yes sync will be a client, I just didn't think of that as coming from the mempool component.
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.
Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @lev-starkware)
commit-id:c08d1931
7aea502
to
48cfcf8
Compare
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.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @lev-starkware)
commit-id:c08d1931
This change is