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
8a578852
Commit
8a578852
authored
1 year ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
fix(
#176
): last certification does postpone expiry
parent
b5d211c7
No related branches found
No related tags found
1 merge request
!232
Resolve "PromotedToSmith is issued even for Smith"
Pipeline
#35614
passed
1 year ago
Stage: labels
Stage: quality
Stage: build
Stage: tests
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pallets/smith-members/src/lib.rs
+1
-1
1 addition, 1 deletion
pallets/smith-members/src/lib.rs
pallets/smith-members/src/tests.rs
+0
-1
0 additions, 1 deletion
pallets/smith-members/src/tests.rs
with
1 addition
and
2 deletions
pallets/smith-members/src/lib.rs
+
1
−
1
View file @
8a578852
...
@@ -455,7 +455,7 @@ impl<T: Config> Pallet<T> {
...
@@ -455,7 +455,7 @@ impl<T: Config> Pallet<T> {
SmithStatus
::
Pending
SmithStatus
::
Pending
};
};
if
smith_meta
.
status
=
=
SmithStatus
::
Pending
{
if
previous_
status
!
=
SmithStatus
::
Smith
{
// - postpone the expiration: a Pending smith cannot do anything but wait
// - postpone the expiration: a Pending smith cannot do anything but wait
// this postponement is here to ease the process of becoming a smith
// this postponement is here to ease the process of becoming a smith
let
new_expires_on
=
let
new_expires_on
=
...
...
This diff is collapsed.
Click to expand it.
pallets/smith-members/src/tests.rs
+
0
−
1
View file @
8a578852
...
@@ -586,7 +586,6 @@ fn certifying_an_online_smith() {
...
@@ -586,7 +586,6 @@ fn certifying_an_online_smith() {
5
5
));
));
// Smith can expire
// Smith can expire
// TODO: test failing because expires_on is not postponed to session 8
assert_eq!
(
assert_eq!
(
Smiths
::
<
Runtime
>
::
get
(
5
),
Smiths
::
<
Runtime
>
::
get
(
5
),
Some
(
SmithMeta
{
Some
(
SmithMeta
{
...
...
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