Skip to content

Commit

Permalink
Undo testnet reshare fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Nov 26, 2024
1 parent 6aeb958 commit 6f91f3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallets/propagation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub mod pallet {
/// Submits a request to do a key refresh on the signers parent key.
pub fn post_reshare(block_number: BlockNumberFor<T>) -> Result<(), http::Error> {
let reshare_data = pallet_staking_extension::Pallet::<T>::reshare_data();
if reshare_data.block_number + sp_runtime::traits::One::one() != block_number {
if reshare_data.block_number != block_number {
return Ok(());
}

Expand Down
2 changes: 1 addition & 1 deletion pallets/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ pub mod pallet {
// trigger reshare at next block
let current_block_number = <frame_system::Pallet<T>>::block_number();
let reshare_info = ReshareInfo {
block_number: current_block_number - sp_runtime::traits::One::one(),
block_number: current_block_number + sp_runtime::traits::One::one(),
new_signers,
};

Expand Down

0 comments on commit 6f91f3f

Please sign in to comment.