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
d4d6c78e
Unverified
Commit
d4d6c78e
authored
1 year ago
by
bgallois
Browse files
Options
Downloads
Patches
Plain Diff
fix
#174
parent
c487f464
No related branches found
No related tags found
No related merge requests found
Pipeline
#36385
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/distance/src/lib.rs
+1
-1
1 addition, 1 deletion
pallets/distance/src/lib.rs
runtime/common/src/weights/pallet_distance.rs
+32
-32
32 additions, 32 deletions
runtime/common/src/weights/pallet_distance.rs
with
33 additions
and
33 deletions
pallets/distance/src/lib.rs
+
1
−
1
View file @
d4d6c78e
...
@@ -46,7 +46,7 @@ use sp_std::prelude::*;
...
@@ -46,7 +46,7 @@ use sp_std::prelude::*;
type
IdtyIndex
=
u32
;
type
IdtyIndex
=
u32
;
/// Maximum number of identities to be evaluated in an evaluation period.
/// Maximum number of identities to be evaluated in an evaluation period.
pub
const
MAX_EVALUATIONS_PER_SESSION
:
u32
=
600
;
pub
const
MAX_EVALUATIONS_PER_SESSION
:
u32
=
1_300
;
// See https://git.duniter.org/nodes/rust/duniter-v2s/-/merge_requests/252
/// Maximum number of evaluators in an evaluation period.
/// Maximum number of evaluators in an evaluation period.
pub
const
MAX_EVALUATORS_PER_SESSION
:
u32
=
100
;
pub
const
MAX_EVALUATORS_PER_SESSION
:
u32
=
100
;
...
...
This diff is collapsed.
Click to expand it.
runtime/common/src/weights/pallet_distance.rs
+
32
−
32
View file @
d4d6c78e
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
//! Autogenerated weights for `pallet_distance`
//! Autogenerated weights for `pallet_distance`
//!
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-0
2-27
, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-0
3-04
, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F`
//! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
// --chain=dev
// --chain=dev
// --steps=50
// --steps=50
// --repeat=20
// --repeat=20
// --pallet=pallet
-
distance
// --pallet=pallet
_
distance
// --extrinsic=*
// --extrinsic=*
// --wasm-execution=compiled
// --wasm-execution=compiled
// --heap-pages=4096
// --heap-pages=4096
...
@@ -69,8 +69,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -69,8 +69,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `1119`
// Measured: `1119`
// Estimated: `4584`
// Estimated: `4584`
// Minimum execution time: 4
0_278
_000 picoseconds.
// Minimum execution time: 4
2_189
_000 picoseconds.
Weight
::
from_parts
(
4
1_411
_000
,
0
)
Weight
::
from_parts
(
4
3_730
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
4584
))
.saturating_add
(
Weight
::
from_parts
(
0
,
4584
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
9
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
9
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
...
@@ -97,8 +97,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -97,8 +97,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `1148`
// Measured: `1148`
// Estimated: `7088`
// Estimated: `7088`
// Minimum execution time: 4
2_131
_000 picoseconds.
// Minimum execution time: 4
4_518
_000 picoseconds.
Weight
::
from_parts
(
4
3_903
_000
,
0
)
Weight
::
from_parts
(
4
5_839
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
7088
))
.saturating_add
(
Weight
::
from_parts
(
0
,
7088
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
10
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
10
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
...
@@ -115,16 +115,16 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -115,16 +115,16 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
/// Proof: `Distance::CurrentPoolIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Proof: `Distance::CurrentPoolIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Distance::EvaluationPool0` (r:1 w:1)
/// Storage: `Distance::EvaluationPool0` (r:1 w:1)
/// Proof: `Distance::EvaluationPool0` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Proof: `Distance::EvaluationPool0` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[1,
6
00]`.
/// The range of component `i` is `[1,
13
00]`.
fn
update_evaluation
(
i
:
u32
,
)
->
Weight
{
fn
update_evaluation
(
i
:
u32
,
)
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `402 + i * (10 ±0)`
// Measured: `402 + i * (10 ±0)`
// Estimated: `188
6
+ i * (10 ±0)`
// Estimated: `188
7
+ i * (10 ±0)`
// Minimum execution time: 12_
079
_000 picoseconds.
// Minimum execution time: 12_
657
_000 picoseconds.
Weight
::
from_parts
(
1
4_113_350
,
0
)
Weight
::
from_parts
(
1
3_883_896
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
188
6
))
.saturating_add
(
Weight
::
from_parts
(
0
,
188
7
))
// Standard Error:
368
// Standard Error:
454
.saturating_add
(
Weight
::
from_parts
(
10
1_595
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
10
5_327
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
6
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
6
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
...
@@ -133,16 +133,16 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -133,16 +133,16 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
/// Proof: `Distance::CurrentPoolIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Proof: `Distance::CurrentPoolIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Distance::EvaluationPool0` (r:1 w:1)
/// Storage: `Distance::EvaluationPool0` (r:1 w:1)
/// Proof: `Distance::EvaluationPool0` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Proof: `Distance::EvaluationPool0` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[1,
6
00]`.
/// The range of component `i` is `[1,
13
00]`.
fn
force_update_evaluation
(
i
:
u32
,
)
->
Weight
{
fn
force_update_evaluation
(
i
:
u32
,
)
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `139 + i * (10 ±0)`
// Measured: `139 + i * (10 ±0)`
// Estimated: `162
3
+ i * (10 ±0)`
// Estimated: `162
4
+ i * (10 ±0)`
// Minimum execution time: 5_
304
_000 picoseconds.
// Minimum execution time: 5_
495
_000 picoseconds.
Weight
::
from_parts
(
6_358_633
,
0
)
Weight
::
from_parts
(
7_434_546
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
162
3
))
.saturating_add
(
Weight
::
from_parts
(
0
,
162
4
))
// Standard Error:
1_291
// Standard Error:
245
.saturating_add
(
Weight
::
from_parts
(
10
9
_18
3
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
10
1
_18
0
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
...
@@ -159,8 +159,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -159,8 +159,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `609`
// Measured: `609`
// Estimated: `6549`
// Estimated: `6549`
// Minimum execution time: 2
4_868
_000 picoseconds.
// Minimum execution time: 2
6_542
_000 picoseconds.
Weight
::
from_parts
(
2
6_575
_000
,
0
)
Weight
::
from_parts
(
2
7_508
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
6549
))
.saturating_add
(
Weight
::
from_parts
(
0
,
6549
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
5
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
5
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
...
@@ -169,8 +169,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -169,8 +169,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `0`
// Measured: `0`
// Estimated: `0`
// Estimated: `0`
// Minimum execution time: 13
0
_000 picoseconds.
// Minimum execution time: 13
9
_000 picoseconds.
Weight
::
from_parts
(
1
58
_000
,
0
)
Weight
::
from_parts
(
1
76
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
0
))
.saturating_add
(
Weight
::
from_parts
(
0
,
0
))
}
}
/// Storage: `System::ParentHash` (r:1 w:0)
/// Storage: `System::ParentHash` (r:1 w:0)
...
@@ -195,8 +195,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -195,8 +195,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `973`
// Measured: `973`
// Estimated: `6913`
// Estimated: `6913`
// Minimum execution time: 4
2_195
_000 picoseconds.
// Minimum execution time: 4
1_828
_000 picoseconds.
Weight
::
from_parts
(
43_
925
_000
,
0
)
Weight
::
from_parts
(
43_
616
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
6913
))
.saturating_add
(
Weight
::
from_parts
(
0
,
6913
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
9
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
9
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
7
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
7
))
...
@@ -215,8 +215,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -215,8 +215,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `364`
// Measured: `364`
// Estimated: `3829`
// Estimated: `3829`
// Minimum execution time: 21_
868
_000 picoseconds.
// Minimum execution time: 21_
914
_000 picoseconds.
Weight
::
from_parts
(
22_
858
_000
,
0
)
Weight
::
from_parts
(
22_
609
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
3829
))
.saturating_add
(
Weight
::
from_parts
(
0
,
3829
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
4
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
4
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
4
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
4
))
...
@@ -231,8 +231,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -231,8 +231,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `109`
// Measured: `109`
// Estimated: `1594`
// Estimated: `1594`
// Minimum execution time: 2_
484
_000 picoseconds.
// Minimum execution time: 2_
666
_000 picoseconds.
Weight
::
from_parts
(
2_
740
_000
,
0
)
Weight
::
from_parts
(
2_
865
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
1594
))
.saturating_add
(
Weight
::
from_parts
(
0
,
1594
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
...
@@ -243,8 +243,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -243,8 +243,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `133`
// Measured: `133`
// Estimated: `1618`
// Estimated: `1618`
// Minimum execution time: 2_
312
_000 picoseconds.
// Minimum execution time: 2_
473
_000 picoseconds.
Weight
::
from_parts
(
2_
562
_000
,
0
)
Weight
::
from_parts
(
2_
729
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
1618
))
.saturating_add
(
Weight
::
from_parts
(
0
,
1618
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
...
...
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