File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed
pallets/bfc-staking/src/pallet Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff 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 ) ?)
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments