-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat(zk_toolbox): Add external_node consensus support #2821
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
6e0d8a5
Copy consensus secrets
matias-gonz 8049f39
Copy consensus config
matias-gonz f0c0dc2
Add consensus to external_node::run
matias-gonz 068f191
Merge branch 'main' into matias-zki-consensus
matias-gonz f277585
Fix consensus secrets
matias-gonz 15b1a54
Merge branch 'matias-zki-consensus' of github.com:matter-labs/zksync-…
matias-gonz a51a3e3
Add generate_consensus_secrets
matias-gonz e5bf82f
Add consensus config
matias-gonz c0b6053
Set en consensus config
matias-gonz b3866ba
impl SaveConfig for ConsensusConfig
matias-gonz ecae56e
Generate consensus_secrets
matias-gonz a1bb148
Remove unused CONSENSUS_SECRETS_PATH
matias-gonz b6a99e1
Fix public addr parse
matias-gonz f54c1cf
set correct key configs
Deniallugo 7892527
Merge pull request #2831 from matter-labs/deniallugo-set-correct-key-…
matias-gonz b8523bf
remove unused params
matias-gonz 8f5b3aa
Switch order
matias-gonz a3bafe3
Update public and server address
matias-gonz ec7dbb4
move consensus keys
matias-gonz 149fafb
Fix main node server and public address ports
matias-gonz b580b11
Make consensus config optional
matias-gonz 9b4fb26
Add update_port_in_host
matias-gonz ace46fa
Merge branch 'main' of github.com:matter-labs/zksync-era into matias-…
matias-gonz 90d6305
Merge branch 'main' into matias-zki-consensus
matias-gonz 1a1c47a
Add consensus to ci
matias-gonz ef57ee7
Merge branch 'matias-zki-consensus' of github.com:matter-labs/zksync-…
matias-gonz 36b46e6
Add basic_witness_input_producer to RocksDbs
matias-gonz 69bf960
Create consensus chain with custom token
matias-gonz 318b240
Create consensus utils
matias-gonz 5ed80d7
Update consensus utils
matias-gonz 82068e0
Add get_consensus_config
matias-gonz c3fe95e
Make strucs pub
matias-gonz 5a2a394
Use Url::parse in update_port_in_host
matias-gonz e3b4052
Use SocketAddr instead of strings
matias-gonz fabd6b9
Update constants
matias-gonz 43bcc1a
Merge branch 'main' into matias-zki-consensus
Deniallugo 76d5574
Update constants
matias-gonz fc4bd6a
Merge branch 'matias-zki-consensus' of github.com:matter-labs/zksync-…
matias-gonz 7df30b6
Change SecretKeys to ConsensusSecretKeys
matias-gonz 3ee92a1
Change let if to map
matias-gonz 8c1c48d
fmt
matias-gonz 729388e
Merge branch 'main' into matias-zki-consensus
Deniallugo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
use zksync_config::configs::consensus::ConsensusConfig; | ||
|
||
use crate::{traits::FileConfigWithDefaultName, CONSENSUS_CONFIG_FILE}; | ||
|
||
impl FileConfigWithDefaultName for ConsensusConfig { | ||
const FILE_NAME: &'static str = CONSENSUS_CONFIG_FILE; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use std::path::Path; | ||
|
||
use xshell::Shell; | ||
use zksync_config::configs::consensus::ConsensusSecrets; | ||
use zksync_protobuf_config::decode_yaml_repr; | ||
|
||
use crate::traits::ReadConfig; | ||
|
||
impl ReadConfig for ConsensusSecrets { | ||
fn read(shell: &Shell, path: impl AsRef<Path>) -> anyhow::Result<Self> { | ||
let path = shell.current_dir().join(path); | ||
decode_yaml_repr::<zksync_protobuf_config::proto::secrets::ConsensusSecrets>(&path, false) | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
zk_toolbox/crates/zk_inception/src/commands/external_node/args/run.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.