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
!22
chore: create pallet dumiter-wot and move in wot logic
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
chore: create pallet dumiter-wot and move in wot logic
elois-pallet-duniter-wot
into
master
Overview
0
Commits
1
Pipelines
0
Changes
33
Merged
chore: create pallet dumiter-wot and move in wot logic
Éloïs
requested to merge
elois-pallet-duniter-wot
into
master
Jan 19, 2022
Overview
0
Commits
1
Pipelines
0
Changes
33
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
8eceaddb
1 commit,
Jan 19, 2022
33 files
+
1346
−
421
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
33
pallets/certification/src/lib.rs
+
0
−
12
View file @ 8eceaddb
Edit in single-file editor
Open in Web IDE
Show full file
@@ -482,18 +482,6 @@ pub mod pallet {
}
}
impl
<
T
:
Config
<
I
>
,
I
:
'static
>
IsIdtyAllowedToCreateCert
<
T
::
IdtyIndex
>
for
Pallet
<
T
,
I
>
{
fn
is_idty_allowed_to_create_cert
(
idty_index
:
T
::
IdtyIndex
)
->
bool
{
if
let
Ok
(
cert_meta
)
=
<
StorageIdtyCertMeta
<
T
,
I
>>
::
try_get
(
idty_index
)
{
use
frame_support
::
traits
::
Get
as
_
;
cert_meta
.next_issuable_on
<=
frame_system
::
pallet
::
Pallet
::
<
T
>
::
block_number
()
&&
cert_meta
.issued_count
<
T
::
MaxByIssuer
::
get
()
}
else
{
true
}
}
}
impl
<
T
:
Config
<
I
>
,
I
:
'static
>
SetNextIssuableOn
<
T
::
BlockNumber
,
T
::
IdtyIndex
>
for
Pallet
<
T
,
I
>
{
fn
set_next_issuable_on
(
idty_index
:
T
::
IdtyIndex
,
Loading