From 6f91f3f9e9d83cb40d856a67bcbdb4f0a303584e Mon Sep 17 00:00:00 2001 From: peg Date: Tue, 26 Nov 2024 12:06:05 +0100 Subject: [PATCH] Undo testnet reshare fix --- pallets/propagation/src/lib.rs | 2 +- pallets/staking/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pallets/propagation/src/lib.rs b/pallets/propagation/src/lib.rs index 36c8dbcec..fcea66d47 100644 --- a/pallets/propagation/src/lib.rs +++ b/pallets/propagation/src/lib.rs @@ -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) -> Result<(), http::Error> { let reshare_data = pallet_staking_extension::Pallet::::reshare_data(); - if reshare_data.block_number + sp_runtime::traits::One::one() != block_number { + if reshare_data.block_number != block_number { return Ok(()); } diff --git a/pallets/staking/src/lib.rs b/pallets/staking/src/lib.rs index 7bc616b0b..4f7f854de 100644 --- a/pallets/staking/src/lib.rs +++ b/pallets/staking/src/lib.rs @@ -793,7 +793,7 @@ pub mod pallet { // trigger reshare at next block let current_block_number = >::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, };