Skip to content

Commit

Permalink
Merge pull request #221 from galacticcouncil/election-fallback
Browse files Browse the repository at this point in the history
fix!: add election fallback on-chain
  • Loading branch information
jak-pan authored Apr 23, 2021
2 parents eda236a + 0b1b7b1 commit 6b31604
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage = 'https://github.com/galacticcouncil/hydradx-node'
license = 'Apache 2.0'
name = 'hydra-dx-runtime'
repository = 'https://github.com/galacticcouncil/hydradx-node'
version = '7.0.0'
version = '9.0.0'

[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
Expand Down Expand Up @@ -34,9 +34,9 @@ pallet-claims = {path = '../pallets/claims', default-features = false}
pallet-exchange = {path = '../pallets/exchange', default-features = false}
pallet-exchange-benchmarking = {path = '../pallets/exchange/benchmarking', default-features = false, optional = true}
pallet-faucet = {path = '../pallets/faucet', default-features = false}
pallet-genesis-history = {path = '../pallets/genesis-history', default-features = false}
pallet-multi-payment-benchmarking = {path = '../pallets/transaction-multi-payment/benchmarking', default-features = false, optional = true}
pallet-transaction-multi-payment = {path = '../pallets/transaction-multi-payment', default-features = false}
pallet-genesis-history = {path = '../pallets/genesis-history', default-features = false}
primitives = {path = '../primitives', default-features = false}

# ORML dependencies
Expand Down
6 changes: 3 additions & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("hydra-dx"),
impl_name: create_runtime_str!("hydra-dx"),
authoring_version: 1,
spec_version: 8,
spec_version: 9,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -616,9 +616,9 @@ parameter_types! {
pub const SignedPhase: u32 = EPOCH_DURATION_IN_BLOCKS / 4;
pub const UnsignedPhase: u32 = EPOCH_DURATION_IN_BLOCKS / 4;

// fallback: no need to do on-chain phragmen initially.
// fallback: run election on-chain.
pub const Fallback: pallet_election_provider_multi_phase::FallbackStrategy =
pallet_election_provider_multi_phase::FallbackStrategy::Nothing;
pallet_election_provider_multi_phase::FallbackStrategy::OnChain;

pub SolutionImprovementThreshold: Perbill = Perbill::from_rational_approximation(1u32, 10_000);

Expand Down

0 comments on commit 6b31604

Please sign in to comment.