Skip to content

Commit

Permalink
Merge pull request #992 from PolymathNetwork/election-block-weight
Browse files Browse the repository at this point in the history
Fix weight for submitting election results
  • Loading branch information
maxsam4 committed Apr 29, 2021
1 parent 8d3bbf7 commit bc01488
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polymesh"
version = "3.0.1"
version = "3.0.2"
authors = ["Polymath"]
build = "build.rs"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion pallets/runtime/develop/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 2018,
spec_version: 2019,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 7,
Expand Down
2 changes: 1 addition & 1 deletion pallets/runtime/itn/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 2018,
spec_version: 2019,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 7,
Expand Down
2 changes: 1 addition & 1 deletion pallets/runtime/testnet/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 2018,
spec_version: 2019,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 7,
Expand Down
14 changes: 2 additions & 12 deletions pallets/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2484,12 +2484,7 @@ decl_module! {
/// # <weight>
/// See `crate::weight` module.
/// # </weight>
#[weight = <T as Trait>::WeightInfo::submit_solution_better(
size.validators.into(),
size.nominators.into(),
compact.len() as u32,
winners.len() as u32,
)]
#[weight = (T::MaximumExtrinsicWeight::get(), Operational)]
pub fn submit_election_solution(
origin,
winners: Vec<ValidatorIndex>,
Expand Down Expand Up @@ -2518,12 +2513,7 @@ decl_module! {
/// # <weight>
/// See `crate::weight` module.
/// # </weight>
#[weight = <T as Trait>::WeightInfo::submit_solution_better(
size.validators.into(),
size.nominators.into(),
compact.len() as u32,
winners.len() as u32,
)]
#[weight = (T::MaximumExtrinsicWeight::get(), Operational)]
pub fn submit_election_solution_unsigned(
origin,
winners: Vec<ValidatorIndex>,
Expand Down

0 comments on commit bc01488

Please sign in to comment.