Skip to content

Commit 50818c2

Browse files
authored
Merge pull request #154 from bifrost-platform/main
back-merge main to test
2 parents 6a9b018 + 6ddd9b9 commit 50818c2

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

pallets/bfc-staking/src/pallet/impls.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ impl<T: Config> Pallet<T> {
8787
<DelayedControllerSets<T>>::try_mutate(
8888
round.current_round_index,
8989
|controller_sets| -> DispatchResult {
90+
ensure!(
91+
!controller_sets.into_iter().any(|c| c.old == old || c.new == new),
92+
Error::<T>::AlreadyControllerSetRequested
93+
);
94+
9095
Ok(controller_sets
9196
.try_push(DelayedControllerSet::new(stash, old, new))
9297
.map_err(|_| <Error<T>>::TooManyDelayedControllers)?)

runtime/dev/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
156156
// The version of the authorship interface.
157157
authoring_version: 1,
158158
// The version of the runtime spec.
159-
spec_version: 413,
159+
spec_version: 414,
160160
// The version of the implementation of the spec.
161161
impl_version: 1,
162162
// A list of supported runtime APIs along with their versions.

runtime/mainnet/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
162162
// The version of the authorship interface.
163163
authoring_version: 1,
164164
// The version of the runtime spec.
165-
spec_version: 2036,
165+
spec_version: 2037,
166166
// The version of the implementation of the spec.
167167
impl_version: 1,
168168
// A list of supported runtime APIs along with their versions.

runtime/testnet/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
157157
// The version of the authorship interface.
158158
authoring_version: 1,
159159
// The version of the runtime spec.
160-
spec_version: 494,
160+
spec_version: 495,
161161
// The version of the implementation of the spec.
162162
impl_version: 1,
163163
// A list of supported runtime APIs along with their versions.

0 commit comments

Comments
 (0)