Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
449c1762
Commit
449c1762
authored
5 months ago
by
Pascal Engélibert
Browse files
Options
Downloads
Patches
Plain Diff
distance-oracle: fix docs and cli help
parent
f290f3c7
No related branches found
No related tags found
1 merge request
!285
distance oracle scheduler
Pipeline
#38585
failed
5 months ago
Stage: build
Stage: tests
Stage: deploy
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
distance-oracle/src/main.rs
+2
-0
2 additions, 0 deletions
distance-oracle/src/main.rs
docs/user/distance.md
+1
-1
1 addition, 1 deletion
docs/user/distance.md
node/src/cli.rs
+1
-1
1 addition, 1 deletion
node/src/cli.rs
with
4 additions
and
2 deletions
distance-oracle/src/main.rs
+
2
−
0
View file @
449c1762
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
docs/user/distance.md
+
1
−
1
View file @
449c1762
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
node/src/cli.rs
+
1
−
1
View file @
449c1762
...
@@ -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 nod
e
///
Node used for fetching stat
e
#[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
,
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment