Skip to content

Commit

Permalink
Update start up with cpu check
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Nov 30, 2021
1 parent 7bf8499 commit bf6095b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ use structopt::StructOpt;
use tokio::runtime;

fn main() -> Result<()> {
if num_cpus::get() < 16 {
eprintln!("\nWARNING - Your machine must have at least 16-cores to run a node.\n");
}

// Parse the provided arguments.
let node = Node::from_args();

Expand Down

0 comments on commit bf6095b

Please sign in to comment.