Skip to content

Commit

Permalink
Make multisig optional for dev node
Browse files Browse the repository at this point in the history
  • Loading branch information
jbearer committed Sep 19, 2024
1 parent ce7a756 commit a709706
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sequencer/src/bin/espresso-dev-node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct Args {
name = "MULTISIG_ADDRESS",
env = "ESPRESSO_SEQUENCER_ETH_MULTISIG_ADDRESS"
)]
multisig_address: H160,
multisig_address: Option<H160>,

/// The frequency of updating the light client state, expressed in update interval
#[clap( long, value_parser = parse_duration, default_value = "20s", env = "ESPRESSO_STATE_PROVER_UPDATE_INTERVAL")]
Expand Down Expand Up @@ -241,6 +241,7 @@ async fn main() -> anyhow::Result<()> {
.zip(
alt_multisig_addresses
.into_iter()
.map(Some)
.chain(std::iter::repeat(multisig_address)),
)
.zip(
Expand All @@ -263,7 +264,7 @@ async fn main() -> anyhow::Result<()> {
url.clone(),
mnemonic.clone(),
account_index,
Some(multisig_address),
multisig_address,
true,
None,
async { Ok(lc_genesis.clone()) }.boxed(),
Expand Down

0 comments on commit a709706

Please sign in to comment.