Skip to content

Commit

Permalink
add param (paritytech#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
grishasobol authored and ukint-vs committed Apr 13, 2023
1 parent bd0a3b7 commit 4aaf01f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/cli/src/commands/run_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ pub struct RunCmd {
/// When `--dev` is given and no explicit `--base-path`, this option is implied.
#[arg(long, conflicts_with = "base_path")]
pub tmp: bool,

#[arg(long, default_value_t = 0x4000)]
pub default_heap_pages: u32,
}

impl RunCmd {
Expand Down Expand Up @@ -493,6 +496,10 @@ impl CliConfiguration for RunCmd {
}
})
}

fn default_heap_pages(&self) -> Result<Option<u64>> {
Ok(Some(self.default_heap_pages as u64))
}
}

/// Check whether a node name is considered as valid.
Expand Down

0 comments on commit 4aaf01f

Please sign in to comment.