Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert changes in runtime
  • Loading branch information
kostekIV committed Nov 22, 2022
commit c891593397f3641f5cbab261903d8b189700d3bb
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion bin/runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aleph-runtime"
version = "0.8.1"
version = "0.8.0"
authors = ["Cardinal Cryptography"]
edition = "2021"
homepage = "https://alephzero.org"
Expand Down
2 changes: 1 addition & 1 deletion bin/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("aleph-node"),
impl_name: create_runtime_str!("aleph-node"),
authoring_version: 1,
spec_version: 39,
spec_version: 38,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 13,
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/Cargo.lock

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

12 changes: 6 additions & 6 deletions e2e-tests/src/test/ban.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,6 @@ pub async fn permissionless_ban(config: &Config) -> anyhow::Result<()> {

let ban_period = 2;
let test_non_reserved_validators = vec![];
root_connection
.set_election_openness(ElectionOpenness::Permissionless, TxStatus::InBlock)
.await?;
root_connection
.set_ban_config(None, None, None, Some(ban_period), TxStatus::InBlock)
.await?;
root_connection
.change_validators(
Some(reserved_validators),
Expand All @@ -305,6 +299,12 @@ pub async fn permissionless_ban(config: &Config) -> anyhow::Result<()> {
TxStatus::InBlock,
)
.await?;
root_connection
.set_election_openness(ElectionOpenness::Permissionless, TxStatus::InBlock)
.await?;
root_connection
.set_ban_config(None, None, None, Some(ban_period), TxStatus::InBlock)
.await?;
root_connection
.ban_from_committee(validator_to_ban.clone(), vec![], TxStatus::InBlock)
.await?;
Expand Down
2 changes: 1 addition & 1 deletion pallets/elections/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pallet-elections"
version = "0.5.1"
version = "0.5.0"
edition = "2021"
license = "Apache 2.0"

Expand Down
8 changes: 3 additions & 5 deletions pallets/elections/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,8 @@ pub mod pallet {

let committee_size_all = reserved + non_reserved;

let mode = Openness::<T>::get();

ensure!(
committee_size_all <= validators_size || mode == ElectionOpenness::Permissionless,
committee_size_all <= validators_size,
Error::<T>::NotEnoughValidators
);

Expand All @@ -412,8 +410,8 @@ pub mod pallet {
);

ensure!(
non_reserved <= non_reserved_len || mode == ElectionOpenness::Permissionless,
Error::<T>::NotEnoughNonReservedValidators,
non_reserved <= non_reserved_len,
Error::<T>::NotEnoughReservedValidators,
);

let member_set: BTreeSet<_> = reserved_validators
Expand Down