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
ae77a3c4
Commit
ae77a3c4
authored
1 year ago
by
Cédric Moreau
Committed by
Pascal Engélibert
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(
#108
): comparison was inverted
parent
0eea07d4
No related branches found
No related tags found
1 merge request
!158
Fix/108/certification expiry
Pipeline
#19606
failed
1 year ago
Stage: build
Stage: tests
Stage: deploy
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pallets/certification/src/lib.rs
+1
-1
1 addition, 1 deletion
pallets/certification/src/lib.rs
with
1 addition
and
1 deletion
pallets/certification/src/lib.rs
+
1
−
1
View file @
ae77a3c4
...
...
@@ -471,7 +471,7 @@ pub mod pallet {
let
mut
removed
=
false
;
CertsByReceiver
::
<
T
,
I
>
::
mutate_exists
(
receiver
,
|
issuers_opt
|
{
let
issuers
=
issuers_opt
.get_or_insert
(
Vec
::
with_capacity
(
0
));
if
let
Ok
(
index
)
=
issuers
.binary_search_by
(|(
issuer_
,
_
)|
issuer
.cmp
(
issuer
_
))
{
if
let
Ok
(
index
)
=
issuers
.binary_search_by
(|(
issuer_
,
_
)|
issuer
_
.cmp
(
&
issuer
))
{
if
let
Some
(
block_number
)
=
block_number_opt
{
if
let
Some
((
_
,
removable_on
))
=
issuers
.get
(
index
)
{
if
*
removable_on
==
block_number
{
...
...
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