Skip to content

Commit

Permalink
Cmd line changes.
Browse files Browse the repository at this point in the history
Enable block relay by default, with override to disable.
  • Loading branch information
rahulksnv committed Aug 28, 2023
1 parent ab23f54 commit 72cf71d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/subspace-node/src/bin/subspace-node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,7 @@ fn main() -> Result<(), Error> {
force_new_slot_notifications: !cli.domain_args.is_empty(),
subspace_networking: SubspaceNetworking::Create { config: dsn_config },
sync_from_dsn: cli.sync_from_dsn,
enable_subspace_block_relay: cli.enable_subspace_block_relay
|| cli.run.is_dev().unwrap_or(false),
enable_subspace_block_relay: cli.enable_subspace_block_relay,
#[cfg(feature = "pot")]
pot_source_config,
};
Expand Down
2 changes: 1 addition & 1 deletion crates/subspace-node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pub struct Cli {

/// Use the block request handler implementation from subspace
/// instead of the default substrate handler.
#[arg(long)]
#[arg(long, default_value_t = true, action = clap::ArgAction::Set)]
pub enable_subspace_block_relay: bool,

/// Assigned PoT role for this node.
Expand Down

0 comments on commit 72cf71d

Please sign in to comment.