-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore(consensus): add config pointer of sequencer address to validator id #2494
chore(consensus): add config pointer of sequencer address to validator id #2494
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArniStarkware and @matan-starkware)
crates/starknet_integration_tests/src/utils.rs
line 66 at r1 (raw file):
eth_fee_token_address: fee_token_addresses.eth_fee_token_address, strk_fee_token_address: fee_token_addresses.strk_fee_token_address, sequencer_address: ContractAddress::from(100_u128),
throughout the PR.
Suggestion:
validator_id
@Itay-Tsabary-Starkware, In #2409, I deleted this param. In this PR, I added it back just to make it a required param. Can we follow through with the to-do instead of adding it here? Code quote: // TODO(tsabary): set as a regular required parameter. |
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, 2 unresolved discussions (waiting on @ArniStarkware and @matan-starkware)
crates/starknet_sequencer_node/src/config/node_config.rs
line 79 at r1 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
@Itay-Tsabary-Starkware, In #2409, I deleted this param. In this PR, I added it back just to make it a required param. Can we follow through with the to-do instead of adding it here?
I am confused. Let's talk in person.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2494 +/- ##
==========================================
- Coverage 40.10% 38.18% -1.93%
==========================================
Files 26 278 +252
Lines 1895 32141 +30246
Branches 1895 32141 +30246
==========================================
+ Hits 760 12273 +11513
- Misses 1100 18840 +17740
- Partials 35 1028 +993 ☔ View full report in Codecov by Sentry. |
e4c9f58
to
0bef960
Compare
Previously, alonh5 (Alon Haramati) wrote…
Done. |
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 5 of 5 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArniStarkware, @Itay-Tsabary-Starkware, and @matan-starkware)
crates/starknet_sequencer_node/src/config/node_config.rs
line 79 at r1 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
I am confused. Let's talk in person.
Is there a way to make a param required without making it a pointer? If so, let's do it in this PR; if not, leave it to TODO.
crates/starknet_sequencer_node/src/config/node_config.rs
line 84 at r2 (raw file):
"validator_id", SerializationType::String, "The ID the validator. Also the address of this validator as a starknet contract.",
Suggestion:
The ID of the validator
0bef960
to
91c2c82
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.
Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on @alonh5, @Itay-Tsabary-Starkware, and @matan-starkware)
crates/starknet_sequencer_node/src/config/node_config.rs
line 84 at r2 (raw file):
"validator_id", SerializationType::String, "The ID the validator. Also the address of this validator as a starknet contract.",
Done.
91c2c82
to
06056a5
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 r3, 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArniStarkware, @Itay-Tsabary-Starkware, and @matan-starkware)
crates/starknet_sequencer_node/src/config/node_config.rs
line 79 at r1 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Is there a way to make a param required without making it a pointer? If so, let's do it in this PR; if not, leave it to TODO.
@ArniStarkware, please check with Itay about the above question before merging.
crates/starknet_sequencer_node/src/config/node_config.rs
line 84 at r4 (raw file):
"validator_id", SerializationType::String, "The ID of the validator.\
Suggestion:
"The ID of the validator. \
Previously, alonh5 (Alon Haramati) wrote…
Itay explained the subject of config pointers to me on huddle.
|
06056a5
to
57a808a
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.
Reviewable status: 2 of 5 files reviewed, 1 unresolved discussion (waiting on @alonh5, @Itay-Tsabary-Starkware, and @matan-starkware)
crates/starknet_sequencer_node/src/config/node_config.rs
line 79 at r1 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
Itay explained the subject of config pointers to me on huddle.
We can set required params without setting them as config pointers. There are two reasons to keep this as a pointer.
- If we expect the value to be duplicated in one or more locations (we can consult Matan / Shachak). We suspect this is not the case, so this point might not matter.
- If we want to keep the validator ID as a pointer for ease of use. Otherwise, when the system is set up - when the user needs to put in the config manually - he will have to provide the whole path:
consensus_manager_config.consensus_config.validator_id
instead of just the name of the pointer:validator_id
.
Deleted the TODO.
IIUC, it will be easier to use this way.
crates/starknet_sequencer_node/src/config/node_config.rs
line 84 at r4 (raw file):
"validator_id", SerializationType::String, "The ID of the validator.\
Done.
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 3 of 3 files at r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArniStarkware, @Itay-Tsabary-Starkware, and @matan-starkware)
crates/starknet_sequencer_node/src/config/node_config.rs
line 84 at r4 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
Done.
Don't see it.
57a808a
to
9349591
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.
Reviewable status: 4 of 5 files reviewed, 1 unresolved discussion (waiting on @alonh5, @Itay-Tsabary-Starkware, and @matan-starkware)
crates/starknet_sequencer_node/src/config/node_config.rs
line 84 at r4 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Don't see it.
Now done.
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 r6, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArniStarkware, @Itay-Tsabary-Starkware, and @matan-starkware)
config/sequencer/default_config.json
line 953 at r6 (raw file):
}, "validator_id": { "description": "A required param! The ID of the validator.Also the address of this validator as a starknet contract.",
Here it should update also right? That's how I noticed the space was missing.
Code quote:
validator.Also
9349591
to
1823c0e
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.
Reviewable status: 4 of 5 files reviewed, 1 unresolved discussion (waiting on @alonh5, @Itay-Tsabary-Starkware, and @matan-starkware)
config/sequencer/default_config.json
line 953 at r6 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Here it should update also right? That's how I noticed the space was missing.
Done.
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 r7, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Itay-Tsabary-Starkware and @matan-starkware)
1823c0e
to
99f1cdb
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 2 of 2 files at r8, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Itay-Tsabary-Starkware and @matan-starkware)
99f1cdb
to
5649fa4
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 3 of 3 files at r9, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Itay-Tsabary-Starkware and @matan-starkware)
No description provided.