Skip to content

Commit fbf4061

Browse files
Adam ReifAdam Reif
authored andcommitted
readd old r parameter to dummy weights ( to be recomputed from CI )
1 parent 072b55a commit fbf4061

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

runtime/calamari/src/weights/manta_collator_selection.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub trait WeightInfo {
5353
fn remove_collator(c: u32, ) -> Weight;
5454
fn register_candidate(c: u32, ) -> Weight;
5555
fn note_author() -> Weight;
56-
fn new_session(c: u32, ) -> Weight;
56+
fn new_session(c: u32, r: u32 ) -> Weight;
5757
}
5858

5959
/// Weights for manta_collator_selection using the Substrate node and recommended hardware.
@@ -240,10 +240,11 @@ impl WeightInfo for () {
240240
// Storage: System BlockWeight (r:1 w:1)
241241
// Storage: Session Validators (r:1 w:0)
242242
// Storage: System Account (r:1 w:1)
243-
fn new_session(c: u32, ) -> Weight {
243+
fn new_session(c: u32, r:u32 ) -> Weight {
244244
(0 as Weight)
245245
// Standard Error: 275_000
246246
.saturating_add((32_572_000 as Weight).saturating_mul(c as Weight))
247+
.saturating_add((0 as Weight).saturating_mul(r as Weight))
247248
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
248249
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
249250
.saturating_add(RocksDbWeight::get().writes(2 as Weight))

0 commit comments

Comments
 (0)