Skip to content

Commit 8057f9b

Browse files
debug: relocate migration file (#844)
* debug: relocate migration file * debug: change runtime methpd public to private * debug: correct chain spec * debug: correct chain spec Co-authored-by: Kai <7630809+Kailai-Wang@users.noreply.github.com>
1 parent 4902182 commit 8057f9b

7 files changed

Lines changed: 13 additions & 3 deletions

File tree

pallets/parachain-staking/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,9 +1507,7 @@ pub mod pallet {
15071507
}
15081508
/// Best as in most cumulatively supported in terms of stake
15091509
/// Returns [collator_count, delegation_count, total staked]
1510-
/// // WARNING/TODO: We change the private into public of select_top_candidates function in
1511-
/// pallet. We should change it back in next runtime upgrade for safety.
1512-
pub fn select_top_candidates(now: RoundIndex) -> (u32, u32, BalanceOf<T>) {
1510+
fn select_top_candidates(now: RoundIndex) -> (u32, u32, BalanceOf<T>) {
15131511
let (mut collator_count, mut delegation_count, mut total) =
15141512
(0u32, 0u32, BalanceOf::<T>::zero());
15151513
// choose the top TotalSelected qualified candidates, ordered by stake
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
P9100.rs
2+
https://github.com/litentry/litentry-parachain/releases/tag/v0.9.10
3+
# This migration is for the replacement of CollatorSelection with ParachainStaking
4+
5+
<!-- MigrateCollatorSelectionIntoParachainStaking -->
6+
# The main purpose of runtime upgrade is for make up the missing genesis build of ParachainStaking and clean the old CollatorSelection storage.

runtime/litentry/src/migration/mod.rs

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
P9100.rs
2+
https://github.com/litentry/litentry-parachain/releases/tag/v0.9.10
3+
# This migration is for the replacement of CollatorSelection with ParachainStaking
4+
5+
<!-- MigrateCollatorSelectionIntoParachainStaking -->
6+
# The main purpose of runtime upgrade is for make up the missing genesis build of ParachainStaking and clean the old CollatorSelection storage.

runtime/rococo/src/migration/mod.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)