committed by
Andrew Jones
parent
0f90696528
commit
97c259858c
@@ -503,6 +503,10 @@ usage! {
|
||||
"--jsonrpc-max-payload=[MB]",
|
||||
"Specify maximum size for HTTP JSON-RPC requests in megabytes.",
|
||||
|
||||
ARG arg_poll_lifetime: (u32) = 60u32, or |c: &Config| c.rpc.as_ref()?.poll_lifetime.clone(),
|
||||
"--poll-lifetime=[S]",
|
||||
"Set the RPC filter lifetime to S seconds. The filter has to be polled at least every S seconds , otherwise it is removed.",
|
||||
|
||||
["API and Console Options – WebSockets"]
|
||||
FLAG flag_no_ws: (bool) = false, or |c: &Config| c.websockets.as_ref()?.disable.clone(),
|
||||
"--no-ws",
|
||||
@@ -757,10 +761,6 @@ usage! {
|
||||
"--gas-price-percentile=[PCT]",
|
||||
"Set PCT percentile gas price value from last 100 blocks as default gas price when sending transactions.",
|
||||
|
||||
ARG arg_poll_lifetime: (u32) = 60u32, or |c: &Config| c.mining.as_ref()?.poll_lifetime.clone(),
|
||||
"--poll-lifetime=[S]",
|
||||
"Set the lifetime of the internal index filter to S seconds.",
|
||||
|
||||
ARG arg_author: (Option<String>) = None, or |c: &Config| c.mining.as_ref()?.author.clone(),
|
||||
"--author=[ADDRESS]",
|
||||
"Specify the block author (aka \"coinbase\") address for sending block rewards from sealed blocks. NOTE: MINING WILL NOT WORK WITHOUT THIS OPTION.", // Sealing/Mining Option
|
||||
@@ -1224,6 +1224,7 @@ struct Rpc {
|
||||
processing_threads: Option<usize>,
|
||||
max_payload: Option<usize>,
|
||||
keep_alive: Option<bool>,
|
||||
poll_lifetime: Option<u32>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, PartialEq, Deserialize)]
|
||||
@@ -1316,7 +1317,6 @@ struct Mining {
|
||||
relay_set: Option<String>,
|
||||
min_gas_price: Option<u64>,
|
||||
gas_price_percentile: Option<usize>,
|
||||
poll_lifetime: Option<u32>,
|
||||
usd_per_tx: Option<String>,
|
||||
usd_per_eth: Option<String>,
|
||||
price_update_period: Option<String>,
|
||||
@@ -1690,6 +1690,7 @@ mod tests {
|
||||
arg_jsonrpc_server_threads: None,
|
||||
arg_jsonrpc_threads: 4,
|
||||
arg_jsonrpc_max_payload: None,
|
||||
arg_poll_lifetime: 60u32,
|
||||
|
||||
// WS
|
||||
flag_no_ws: false,
|
||||
@@ -1751,7 +1752,6 @@ mod tests {
|
||||
arg_min_gas_price: Some(0u64),
|
||||
arg_usd_per_tx: "0.0001".into(),
|
||||
arg_gas_price_percentile: 50usize,
|
||||
arg_poll_lifetime: 60u32,
|
||||
arg_usd_per_eth: "auto".into(),
|
||||
arg_price_update_period: "hourly".into(),
|
||||
arg_gas_floor_target: "8000000".into(),
|
||||
@@ -1965,6 +1965,7 @@ mod tests {
|
||||
processing_threads: None,
|
||||
max_payload: None,
|
||||
keep_alive: None,
|
||||
poll_lifetime: None,
|
||||
}),
|
||||
ipc: Some(Ipc {
|
||||
disable: None,
|
||||
@@ -2021,7 +2022,6 @@ mod tests {
|
||||
relay_set: None,
|
||||
min_gas_price: None,
|
||||
gas_price_percentile: None,
|
||||
poll_lifetime: None,
|
||||
usd_per_tx: None,
|
||||
usd_per_eth: None,
|
||||
price_update_period: Some("hourly".into()),
|
||||
|
||||
Reference in New Issue
Block a user