difftreelog
Merge pull request #1057 from UniqueNetwork/feature/resolve-skipped-blocks
in: master
resolve_unstake
5 files changed
Cargo.lockdiffbeforeafterboth681468146815[[package]]6815[[package]]6816name = "pallet-app-promotion"6816name = "pallet-app-promotion"6817version = "0.2.1"6817version = "0.2.2"6818dependencies = [6818dependencies = [6819 "frame-benchmarking",6819 "frame-benchmarking",6820 "frame-support",6820 "frame-support",js-packages/scripts/correctStateAfterMaintenance.tsdiffbeforeafterboth37 const signer = await privateKey(options.donorSeed);37 const signer = await privateKey(options.donorSeed);383839 const txs = skippedBlocks.map((b) =>39 const txs = skippedBlocks.map((b) =>40 api.tx.sudo.sudo(api.tx.appPromotion.forceUnstake(b)));40 api.tx.appPromotion.resolveSkippedBlocks(b));4141424243 const promises = txs.map((tx) => () => helper.signTransaction(signer, tx));43 const promises = txs.map((tx) => () => helper.signTransaction(signer, tx));pallets/app-promotion/CHANGELOG.mddiffbeforeafterboth445<!-- bureaucrate goes here -->5<!-- bureaucrate goes here -->667## [0.2.2] - 2024-03-2189### Changed1011- Unstake of skipped blocks is now available to `Signed` origin.127## [0.2.1] - 2023-06-2313## [0.2.1] - 2023-06-238149### Changed15### Changedpallets/app-promotion/Cargo.tomldiffbeforeafterboth9license = 'GPLv3'9license = 'GPLv3'10name = 'pallet-app-promotion'10name = 'pallet-app-promotion'11repository = 'https://github.com/UniqueNetwork/unique-chain'11repository = 'https://github.com/UniqueNetwork/unique-chain'12version = '0.2.1'12version = '0.2.2'131314[package.metadata.docs.rs]14[package.metadata.docs.rs]15targets = ['x86_64-unknown-linux-gnu']15targets = ['x86_64-unknown-linux-gnu']pallets/app-promotion/src/lib.rsdiffbeforeafterboth689689690 /// Called for blocks that, for some reason, have not been unstacked690 /// Called for blocks that, for some reason, have not been unstacked691 ///691 ///692 /// # Permissions693 ///694 /// * Sudo695 ///692 ///696 /// # Arguments693 /// # Arguments697 ///694 ///698 /// * `origin`: Must be `Root`.695 /// * `origin`: Must be `Signed`.699 /// * `pending_blocks`: Block numbers that will be processed.696 /// * `pending_blocks`: Block numbers that will be processed.700 #[pallet::call_index(9)]697 #[pallet::call_index(9)]701 #[pallet::weight(<T as Config>::WeightInfo::on_initialize(PENDING_LIMIT_PER_BLOCK*pending_blocks.len() as u32))]698 #[pallet::weight(<T as Config>::WeightInfo::on_initialize(PENDING_LIMIT_PER_BLOCK*pending_blocks.len() as u32))]702 pub fn force_unstake(699 pub fn resolve_skipped_blocks(703 origin: OriginFor<T>,700 origin: OriginFor<T>,704 pending_blocks: Vec<BlockNumberFor<T>>,701 pending_blocks: Vec<BlockNumberFor<T>>,705 ) -> DispatchResult {702 ) -> DispatchResult {706 ensure_root(origin)?;703 ensure_signed(origin)?;707704708 ensure!(705 ensure!(709 pending_blocks706 pending_blocks