Skip to content

Commit

Permalink
add address argument for orchestartor
Browse files Browse the repository at this point in the history
  • Loading branch information
mimoo committed Jan 23, 2024
1 parent 45e1700 commit 3f6aac6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bin/zkbtc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ enum Commands {

/// Starts an orchestrator
StartOrchestrator {
/// The address to run the node on.
#[arg(short, long)]
address: Option<String>,

#[arg(short, long)]
publickey_package_path: String,

Expand Down Expand Up @@ -466,6 +470,7 @@ async fn main() -> Result<()> {
}

Commands::StartOrchestrator {
address,
publickey_package_path,
committee_cfg_path,
} => {
Expand All @@ -489,7 +494,7 @@ async fn main() -> Result<()> {
assert!(committee_cfg.threshold > 0);

zkbitcoin::committee::orchestrator::run_server(
Some(ORCHESTRATOR_ADDRESS),
address.as_deref(),
pubkey_package,
committee_cfg,
)
Expand Down

0 comments on commit 3f6aac6

Please sign in to comment.