diff --git a/client/cli/src/commands/run_cmd.rs b/client/cli/src/commands/run_cmd.rs index 9441acecc4dfc..950428b99174b 100644 --- a/client/cli/src/commands/run_cmd.rs +++ b/client/cli/src/commands/run_cmd.rs @@ -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 { @@ -493,6 +496,10 @@ impl CliConfiguration for RunCmd { } }) } + + fn default_heap_pages(&self) -> Result> { + Ok(Some(self.default_heap_pages as u64)) + } } /// Check whether a node name is considered as valid.