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
Merge requests
!279
Fix
#250
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix
#250
fix-250
into
master
Overview
2
Commits
1
Pipelines
10
Changes
5
1 unresolved thread
Hide all comments
Merged
Benjamin Gallois
requested to merge
fix-250
into
master
5 months ago
Overview
2
Commits
1
Pipelines
10
Changes
11
1 unresolved thread
Hide all comments
Expand
Fix
#250 (closed)
by adding the RPC module for Grandpa.
Note:
proveFinality
call will only work after the first authority set change.
Edited
5 months ago
by
Benjamin Gallois
1
0
Merge request reports
Compare
version 3
version 5
b27ee1da
5 months ago
version 4
a55f5b4d
5 months ago
version 3
3d00bcbb
5 months ago
version 2
a8c41d5a
5 months ago
version 1
a11adae1
5 months ago
master (base)
and
version 5
latest version
b27ee1da
1 commit,
5 months ago
version 5
b27ee1da
1 commit,
5 months ago
version 4
a55f5b4d
1 commit,
5 months ago
version 3
3d00bcbb
1 commit,
5 months ago
version 2
a8c41d5a
1 commit,
5 months ago
version 1
a11adae1
1 commit,
5 months ago
Show latest version
11 files
+
287
−
64
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
end2end-tests/cucumber-features/distance_fail.feature
0 → 100644
+
50
−
0
Options
@genesis.bad_distance
Feature
:
Distance fail
#
# WoT:
#
# H<->G<->E<->D<->C-->B
# ^ ^ ^ ^
# \ / \ /
# v v v v
# I A
#
# Every member is referee. Referee count = 8; 80% = 6.4
# Certs from Alice and Bob do not ensure the fulfilling of the distance rule
# because the newcomer would reach only 6 members up to G.
Scenario
:
an
unvalidated member fails the distance rule
Then
treasury should contain 1 ĞD
When
alice sends 7 ĞD to ferdie
Then
alice should have 0 ĞD reserved
Then
alice should have 199 cĞD
When
bob sends 750 cĞD to ferdie
When
15 block later
When
alice creates identity for ferdie
Then
ferdie identity should be unconfirmed
Then
ferdie should be certified by alice
When
ferdie confirms his identity with pseudo
"ferdie"
Then
ferdie identity should be unvalidated
When
3 block later
When
bob certifies ferdie
Then
ferdie should be certified by bob
Then
ferdie should have 0 ĞD reserved
Then
ferdie should have 1449 cĞD
When
ferdie requests distance evaluation
Then
ferdie should have 10 ĞD reserved
Then
ferdie should have 449 cĞD
When
7 blocks later
Then
treasury should contain 102 cĞD
When
alice runs distance oracle
When
7 blocks later
Then
ferdie should be certified by alice
Then
ferdie should be certified by bob
# The distance rule is failed
Then
ferdie identity should be unvalidated
# Ferdie got his reserve slashed
Then
ferdie should have 0 ĞD reserved
Then
ferdie should have 449 cĞD
# Slashed amount is transfered to treasury
Then
treasury should contain 1102 cĞD
Loading