diff --git a/distance-oracle/src/main.rs b/distance-oracle/src/main.rs index 5da3aea1466bd53a6fe486ac49471b4b79fadecf..405abda20c09adbbaea89379d0e7a0fa84b84b7a 100644 --- a/distance-oracle/src/main.rs +++ b/distance-oracle/src/main.rs @@ -20,8 +20,10 @@ use clap::Parser; struct Cli { #[clap(short = 'd', long, default_value = "/tmp/duniter/chains/gdev/distance")] evaluation_result_dir: String, + /// Number of seconds between two evaluations (oneshot if absent) #[clap(short = 'i', long, default_value = "None")] interval: Option<u64>, + /// Node used for fetching state #[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")] rpc_url: String, /// Log level (off, error, warn, info, debug, trace) diff --git a/docs/user/distance.md b/docs/user/distance.md index 2df0d6febf484c95fc96a5231b528514d33e00f7..015ab08241d763cf7e04612e6abf4d2d94b97b0e 100644 --- a/docs/user/distance.md +++ b/docs/user/distance.md @@ -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. -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> diff --git a/node/src/cli.rs b/node/src/cli.rs index 12580c991e2799ef5d21a167f10be340d3b315c9..196e29d0fcefe7df37d76a47f06216327948e2f6 100644 --- a/node/src/cli.rs +++ b/node/src/cli.rs @@ -137,7 +137,7 @@ pub struct DistanceOracle { /// Number of seconds between two evaluations (oneshot if absent) #[clap(short = 'i', long)] pub interval: Option<u64>, - /// Local forging node + /// Node used for fetching state #[clap(short = 'u', long, default_value = "ws://127.0.0.1:9944")] pub rpc_url: String, }