Skip to content
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(mono): relative path + cli configuration for multiple L2s #54

Open
wants to merge 19 commits into
base: gwyneth
Choose a base branch
from

Conversation

CeciliaZ030
Copy link

These are now configurable:

pub struct L2Args {
    #[arg(long = "l2.chain_ids", required = true, num_args = 1..,)]
    pub chain_ids: Vec<u64>,

    #[arg(long = "l2.datadirs", required = true, num_args = 1..,)]
    pub datadirs: Vec<PathBuf>,

    #[arg(long = "l2.ports", num_args = 1..,)]
    pub ports: Vec<u16>,

    #[arg(long = "l2.ipc_path")]
    pub ipc_path: String,
}

When you run L2 with reth node --l2.chain_ids <blah blah> --l2.datadirs <blah blah>, these two are mandatory. Ports and IPC can be default. These's only one ipc_path cuz it's a column shared btw Reth, inside we have specific ipc files:
Screenshot 2024-10-29 at 2 53 59 AM
Also Reth data volumes are shared per L2:
Screenshot 2024-10-29 at 2 55 47 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants