Skip to content

Commit

Permalink
desired candidates = 5
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Jun 4, 2024
1 parent f9a89c4 commit 91ceccc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions polkadot-parachains/integritee-runtime/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub mod collator_selection_init {
const TARGET: &str = "runtime::fix::collator_selection_init";
pub mod v0 {
use super::*;
use crate::SessionKeys;
use crate::{SessionKeys, TEER};
use frame_support::{pallet_prelude::*, traits::Currency};
use hex_literal::hex;
use log::info;
Expand Down Expand Up @@ -255,10 +255,12 @@ pub mod collator_selection_init {
pallet_collator_selection::Invulnerables::<T>::put(invulnerables);

pallet_collator_selection::CandidacyBond::<T>::put::<BalanceOf<T>>(
5_000_000_000_000u128.into(),
(500 * TEER).into(),
);

T::DbWeight::get().reads_writes(0, 4 + 5 * 2)
pallet_collator_selection::DesiredCandidates::<T>::put::<u32>(5);

T::DbWeight::get().reads_writes(0, 5 + 5 * 2)
}

#[cfg(feature = "try-runtime")]
Expand Down

0 comments on commit 91ceccc

Please sign in to comment.