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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Merge requests
!226
distance: move max-depth to runtime constant
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
distance: move max-depth to runtime constant
tuxmain/distance-max-depth
into
master
Overview
1
Commits
2
Pipelines
7
Changes
13
Merged
Pascal Engélibert
requested to merge
tuxmain/distance-max-depth
into
master
1 year ago
Overview
1
Commits
2
Pipelines
7
Changes
13
closes
#169 (closed)
0
0
Merge request reports
Compare
master
version 3
3b5be57a
1 year ago
version 2
fff5ecb3
1 year ago
version 1
28d46791
1 year ago
master (base)
and
latest version
latest version
ae670676
2 commits,
1 year ago
version 3
3b5be57a
1 commit,
1 year ago
version 2
fff5ecb3
1 commit,
1 year ago
version 1
28d46791
1 commit,
1 year ago
13 files
+
27
−
35
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
13
distance-oracle/src/api.rs
+
7
−
0
View file @ ae670676
Edit in single-file editor
Open in Web IDE
Show full file
@@ -81,6 +81,13 @@ pub async fn evaluation_block(client: &Client, parent_hash: H256) -> H256 {
.expect
(
"No evaluation block"
)
}
pub
async
fn
max_referee_distance
(
client
:
&
Client
)
->
u32
{
client
.constants
()
.at
(
&
runtime
::
constants
()
.distance
()
.max_referee_distance
())
.expect
(
"Cannot fetch referee distance"
)
}
pub
async
fn
member_iter
(
client
:
&
Client
,
evaluation_block
:
H256
)
->
MemberIter
{
MemberIter
(
client
Loading