feat: New config pow command to set the default PoW difficulty

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-06-07 19:54:40 +00:00
parent 53a2eb5bda
commit 51bd239024
8 changed files with 100 additions and 7 deletions

View File

@@ -73,7 +73,10 @@ impl Cli {
}
/// Processes the CLI configuration and returns it if successful.
pub fn post_cli(cli: Cli) -> N34Result<Cli> {
// TODO
pub fn post_cli(mut cli: Cli) -> N34Result<Cli> {
if cli.options.pow.is_none() && cli.options.config.pow.is_some() {
cli.options.pow = cli.options.config.pow;
}
Ok(cli)
}