Skip to content
Snippets Groups Projects
Commit 449c1762 authored by Pascal Engélibert's avatar Pascal Engélibert :bicyclist:
Browse files

distance-oracle: fix docs and cli help

parent f290f3c7
No related branches found
No related tags found
1 merge request!285distance oracle scheduler
Pipeline #38585 failed
...@@ -20,8 +20,10 @@ use clap::Parser; ...@@ -20,8 +20,10 @@ use clap::Parser;
struct Cli { struct Cli {
#[clap(short = 'd', long, default_value = "/tmp/duniter/chains/gdev/distance")] #[clap(short = 'd', long, default_value = "/tmp/duniter/chains/gdev/distance")]
evaluation_result_dir: String, evaluation_result_dir: String,
/// Number of seconds between two evaluations (oneshot if absent)
#[clap(short = 'i', long, default_value = "None")] #[clap(short = 'i', long, default_value = "None")]
interval: Option<u64>, interval: Option<u64>,
/// Node used for fetching state
#[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")] #[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")]
rpc_url: String, rpc_url: String,
/// Log level (off, error, warn, info, debug, trace) /// Log level (off, error, warn, info, debug, trace)
......
...@@ -8,7 +8,7 @@ Distance evaluation is operated on a voluntary basis by individual smiths. Since ...@@ -8,7 +8,7 @@ Distance evaluation is operated on a voluntary basis by individual smiths. Since
Any smith member authoring blocks can run a distance evaluation oracle. It is better to have a machine more powerful than the reference machine. Any smith member authoring blocks can run a distance evaluation oracle. It is better to have a machine more powerful than the reference machine.
Create a service from this commandline, run by the same user as Duniter, on the same system: Create a service from this command line, run by the same user as Duniter, on the same system:
/absolute/path/to/duniter distance-oracle --interval <duration> /absolute/path/to/duniter distance-oracle --interval <duration>
......
...@@ -137,7 +137,7 @@ pub struct DistanceOracle { ...@@ -137,7 +137,7 @@ pub struct DistanceOracle {
/// Number of seconds between two evaluations (oneshot if absent) /// Number of seconds between two evaluations (oneshot if absent)
#[clap(short = 'i', long)] #[clap(short = 'i', long)]
pub interval: Option<u64>, pub interval: Option<u64>,
/// Local forging node /// Node used for fetching state
#[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")] #[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")]
pub rpc_url: String, pub rpc_url: String,
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment