Skip to content
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/
mode of operation when the download/bootstrapping finishes.

- Node CLI:
- the help text now documents the accepted values and defaults of the constrained
options (`--storage-backend`, `--node-type`, `--rpc-bind-address`, `--rpc-enabled`).
- boolean node options now require an explicit `true`/`false` value (e.g.
`--enable-db-reckless-mode-in-ibd true`) instead of working as value-less flags; the
corresponding environment variables (`ML_NODE_*` for top-level options and
Expand Down
8 changes: 8 additions & 0 deletions node-lib/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,14 @@ pub struct RunOptions {
pub blockprod_use_current_time_if_non_pos: Option<bool>,

/// Storage backend to use.
///
/// Possible values: `lmdb`, `inmemory`. Defaults to `lmdb`.
#[clap(long)]
pub storage_backend: Option<StorageBackendConfigFile>,

/// The node type.
///
/// Possible values: `full-node`, `blocks-only-node`. Defaults to `full-node`.
#[clap(long)]
pub node_type: Option<NodeTypeConfigFile>,

Expand Down Expand Up @@ -489,10 +493,14 @@ pub struct RunOptions {
pub max_tip_age: Option<u64>,

/// Address to bind RPC to.
///
/// Defaults to `127.0.0.1` with the chain's default RPC port.
#[clap(long, value_name = "ADDR")]
pub rpc_bind_address: Option<SocketAddr>,

/// Enable/Disable http RPC.
///
/// Defaults to `true`.
#[clap(long, value_name = "true|false", action = clap::ArgAction::Set)]
pub rpc_enabled: Option<bool>,

Expand Down
Loading