Skip to content

Commit

Permalink
Align Args deserialize names to CLI flag names
Browse files Browse the repository at this point in the history
  • Loading branch information
orgr committed Mar 19, 2024
1 parent 712fcae commit c976d4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kaspad/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,29 @@ pub struct Args {
// NOTE: it is best if property names match config file fields
pub appdir: Option<String>,
pub logdir: Option<String>,
#[serde(rename = "nologfiles")]
pub no_log_files: bool,
#[serde_as(as = "Option<DisplayFromStr>")]
pub rpclisten: Option<ContextualNetAddress>,
#[serde_as(as = "Option<DisplayFromStr>")]
pub rpclisten_borsh: Option<WrpcNetAddress>,
#[serde_as(as = "Option<DisplayFromStr>")]
pub rpclisten_json: Option<WrpcNetAddress>,
#[serde(rename = "unsaferpc")]
pub unsafe_rpc: bool,
pub wrpc_verbose: bool,
#[serde(rename = "loglevel")]
pub log_level: String,
pub async_threads: usize,
#[serde(rename = "connect")]
#[serde_as(as = "Vec<DisplayFromStr>")]
pub connect_peers: Vec<ContextualNetAddress>,
#[serde(rename = "addpeer")]
#[serde_as(as = "Vec<DisplayFromStr>")]
pub add_peers: Vec<ContextualNetAddress>,
#[serde_as(as = "Option<DisplayFromStr>")]
pub listen: Option<ContextualNetAddress>,
#[serde(rename = "uacomment")]
pub user_agent_comments: Vec<String>,
pub utxoindex: bool,
pub reset_db: bool,
Expand Down Expand Up @@ -77,7 +83,9 @@ pub struct Args {
pub prealloc_amount: u64,

pub disable_upnp: bool,
#[serde(rename = "nodnsseed")]
pub disable_dns_seeding: bool,
#[serde(rename = "nogrpc")]
pub disable_grpc: bool,
pub ram_scale: f64,
}
Expand Down

0 comments on commit c976d4d

Please sign in to comment.