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
!43
Params
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Params
params
into
master
Overview
0
Commits
5
Pipelines
0
Changes
9
Merged
Éloïs
requested to merge
params
into
master
2 years ago
Overview
0
Commits
5
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Compare
version 1
version 2
7e4d175c
2 years ago
version 1
575a28d1
2 years ago
master (base)
and
version 2
latest version
38468205
5 commits,
2 years ago
version 2
7e4d175c
4 commits,
2 years ago
version 1
575a28d1
3 commits,
2 years ago
Show latest version
4 files
+
4
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
runtime/common/src/pallets_config.rs
+
1
−
12
Options
@@ -84,17 +84,6 @@ macro_rules! pallets_config {
BlockWeights
::
get
()
.max_block
;
pub
const
MaxScheduledPerBlock
:
u32
=
50
;
}
/// Used the compare the privilege of an origin inside the scheduler.
pub
struct
OriginPrivilegeCmp
;
impl
frame_support
::
traits
::
PrivilegeCmp
<
OriginCaller
>
for
OriginPrivilegeCmp
{
fn
cmp_privilege
(
left
:
&
OriginCaller
,
right
:
&
OriginCaller
)
->
Option
<
core
::
cmp
::
Ordering
>
{
if
left
==
right
{
Some
(
core
::
cmp
::
Ordering
::
Equal
)
}
else
{
None
}
}
}
impl
pallet_scheduler
::
Config
for
Runtime
{
type
Event
=
Event
;
type
Origin
=
Origin
;
@@ -102,7 +91,7 @@ macro_rules! pallets_config {
type
Call
=
Call
;
type
MaximumWeight
=
MaximumSchedulerWeight
;
type
ScheduleOrigin
=
frame_system
::
EnsureSigned
<
AccountId
>
;
type
OriginPrivilegeCmp
=
Origin
Privilege
Cmp
;
type
OriginPrivilegeCmp
=
Equal
Privilege
Only
;
type
MaxScheduledPerBlock
=
MaxScheduledPerBlock
;
type
WeightInfo
=
pallet_scheduler
::
weights
::
SubstrateWeight
<
Runtime
>
;
type
PreimageProvider
=
();
Loading