Skip to content

Commit

Permalink
fix: only allow the test_targets feature in --dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
joske committed Aug 13, 2024
1 parent b803800 commit 25631ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/src/commands/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,12 @@ impl Start {
// Print the welcome.
println!("{}", crate::helpers::welcome_message());

// Check if we are running with the lower coinbase and proof targets. This should only be
// allowed in --dev mode.
if cfg!(feature = "test_targets") && self.dev.is_none() {
bail!("The 'test_targets' feature is enabled, but the '--dev' flag is not set");
}

// Parse the trusted peers to connect to.
let mut trusted_peers = self.parse_trusted_peers()?;
// Parse the trusted validators to connect to.
Expand Down

0 comments on commit 25631ef

Please sign in to comment.