Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A0-1502: Finality version e2e test #717

Merged
merged 116 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
5ac97f2
Setting up AlephBFT version
maciejzelaszczyk Aug 30, 2022
27e43a9
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Aug 31, 2022
62126ec
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Aug 31, 2022
459d145
Changed handling to map from session to version
maciejzelaszczyk Aug 31, 2022
ac02944
Changed logic to handle serving last set AlephBFT version
maciejzelaszczyk Sep 1, 2022
fb4b788
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 5, 2022
c707921
Changed logic to handle setting of version in future only
maciejzelaszczyk Sep 5, 2022
afa232b
Reworked storage and accessors to only store one version plus session…
maciejzelaszczyk Sep 6, 2022
3eea0df
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 7, 2022
357e2d9
Treat version change as a delimiting flag
maciejzelaszczyk Sep 7, 2022
b74359d
Loose coupling between pallet_aleph and pallet_session to access curr…
maciejzelaszczyk Sep 7, 2022
7c900a3
Fixed trait implementation for mock
maciejzelaszczyk Sep 8, 2022
4ae4f4c
Added comment to trait
maciejzelaszczyk Sep 8, 2022
71c1538
Replaced panics with Results in AlephBFT version handling
maciejzelaszczyk Sep 8, 2022
9ef7f8f
Changed logic to work with numbered versions
maciejzelaszczyk Sep 12, 2022
c781a0c
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 12, 2022
0fee02d
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 13, 2022
e0d9fb3
Changed behavior on session start and end
maciejzelaszczyk Sep 13, 2022
157d49b
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 14, 2022
7eea19c
Fixed version change update
maciejzelaszczyk Sep 15, 2022
5ff7256
Linked SessionManager in runtime
maciejzelaszczyk Sep 16, 2022
08a0dc6
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 16, 2022
f63875b
Mock impl
maciejzelaszczyk Sep 16, 2022
3f68522
Reworked SessionManage link
maciejzelaszczyk Sep 16, 2022
002a2b5
Linter
maciejzelaszczyk Sep 16, 2022
9b70cc4
Removed pallet_elections from mock
maciejzelaszczyk Sep 16, 2022
4853d8b
Removed event
maciejzelaszczyk Sep 16, 2022
706c9b1
linter
maciejzelaszczyk Sep 16, 2022
66989bf
Linter
maciejzelaszczyk Sep 16, 2022
23ae4a8
Reworked AlephBFT version history updates
maciejzelaszczyk Sep 19, 2022
f0bb79a
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 20, 2022
f23314e
Reworked storage to use value instead of map
maciejzelaszczyk Sep 22, 2022
6416805
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 22, 2022
f08cb5f
Added unit test
maciejzelaszczyk Sep 22, 2022
f11a76c
Added version change unscheduling and next session version
maciejzelaszczyk Sep 23, 2022
1ca8421
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 26, 2022
8c46f55
Removed explicit version unscheduling; added version default
maciejzelaszczyk Sep 26, 2022
b76b5d3
Extended docs for pallet aleph
maciejzelaszczyk Sep 27, 2022
8f3d600
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 27, 2022
ab33ed1
Moved default AlephBFT version to const
maciejzelaszczyk Sep 27, 2022
df25289
Merge branch 'main' into A0-1323-aleph-bft-version-coordination
maciejzelaszczyk Sep 30, 2022
cc89848
Renamed helper function
maciejzelaszczyk Oct 3, 2022
5a331e7
Merge branch 'A0-1323-aleph-bft-version-coordination' of github.com:C…
maciejzelaszczyk Oct 3, 2022
94519a2
Fixed test
maciejzelaszczyk Oct 3, 2022
1e9daef
Changed naming
maciejzelaszczyk Oct 3, 2022
27a1207
Bumped spec version
maciejzelaszczyk Oct 3, 2022
6599a4e
Bumped transaction version
maciejzelaszczyk Oct 4, 2022
5c131b8
Finality version RPC and e2e test, first stab
maciejzelaszczyk Oct 13, 2022
0a63a9c
Merging
maciejzelaszczyk Oct 13, 2022
d3f6d47
Added GenesisBuild to pallet_aleph
maciejzelaszczyk Oct 13, 2022
01b8e4e
Added finality version e2e test
maciejzelaszczyk Oct 14, 2022
b9edd93
Reworked test logic
maciejzelaszczyk Oct 17, 2022
c020660
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Nov 4, 2022
7d6bb8a
Removed unused imports
maciejzelaszczyk Nov 4, 2022
2bd4672
Dependency version fixes; prep work for test logic change
maciejzelaszczyk Nov 4, 2022
7cb6d06
Post factum checks
maciejzelaszczyk Nov 7, 2022
61b534e
Changed checks; changed finality version update session
maciejzelaszczyk Nov 8, 2022
9e4e77d
Added test description
maciejzelaszczyk Nov 8, 2022
01530d1
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Nov 8, 2022
6dc2068
aleph-client and aleph-e2e-client version bumps
maciejzelaszczyk Nov 8, 2022
944f6bd
spec_version and transaction_version bumps
maciejzelaszczyk Nov 8, 2022
24c1b1d
Changed comment about error code
maciejzelaszczyk Nov 8, 2022
8144b41
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Nov 8, 2022
692f957
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Nov 8, 2022
efda24b
Added doc comment
maciejzelaszczyk Nov 9, 2022
6ec8600
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Nov 14, 2022
06e8853
Cargo.lock
maciejzelaszczyk Nov 14, 2022
bdb9df4
Bumped runtime version
maciejzelaszczyk Nov 14, 2022
e4cc57b
Disabled runtime upgrade check in CI
maciejzelaszczyk Nov 18, 2022
ecfe53a
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Nov 18, 2022
154f2b9
Revert "Disabled runtime upgrade check in CI"
maciejzelaszczyk Nov 18, 2022
4abbd27
Disabled runtime upgrade check without removing it
maciejzelaszczyk Nov 18, 2022
c458f55
Merge remote-tracking branch 'origin/A0-1502-finality-version-e2e-tes…
maciejzelaszczyk Nov 18, 2022
5619520
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Nov 24, 2022
ae54e4a
Post-merge cleanup
maciejzelaszczyk Nov 24, 2022
1fea9b3
Back to storage; handle connection refactor
maciejzelaszczyk Nov 25, 2022
7962400
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Nov 25, 2022
6436acc
Codegen
maciejzelaszczyk Nov 25, 2022
c68e1e6
Bumped aleph-client version
maciejzelaszczyk Nov 25, 2022
9264f6b
Back to rpc call; prelims
maciejzelaszczyk Dec 7, 2022
cc4402c
Rpc interface
maciejzelaszczyk Dec 8, 2022
9684b89
Rpc
maciejzelaszczyk Dec 8, 2022
de89096
Link with node
maciejzelaszczyk Dec 8, 2022
52c0acb
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Dec 14, 2022
706a609
Rpc request; cleanup
maciejzelaszczyk Dec 15, 2022
58e433f
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Dec 16, 2022
b4eaddd
Partial fix
maciejzelaszczyk Dec 20, 2022
17f1873
Fixed RPC params
maciejzelaszczyk Dec 22, 2022
eb75a28
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Dec 22, 2022
eb196a1
Versioning
maciejzelaszczyk Dec 22, 2022
ab2eb0c
Linter
maciejzelaszczyk Dec 22, 2022
19fa8bb
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Jan 2, 2023
9c89347
Default version fix
maciejzelaszczyk Jan 2, 2023
d01c867
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Jan 2, 2023
0366d36
E2e test version bump
maciejzelaszczyk Jan 2, 2023
c5ebb3a
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Jan 3, 2023
ec49ef6
Interface reorg
maciejzelaszczyk Jan 3, 2023
c566cf3
Linter
maciejzelaszczyk Jan 3, 2023
cc79f26
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Jan 16, 2023
495aa47
Connection fixes; pipelines
maciejzelaszczyk Jan 16, 2023
1b78913
Linter
maciejzelaszczyk Jan 16, 2023
2887104
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Jan 17, 2023
0ec093c
Finality version set in chain spec
maciejzelaszczyk Jan 17, 2023
4b14085
Subxt codegen
maciejzelaszczyk Jan 17, 2023
125fb64
E2e test fix
maciejzelaszczyk Jan 17, 2023
dc86c13
Runtime metadata for aleph-client
maciejzelaszczyk Jan 17, 2023
e85eff2
Hide doc warnings
maciejzelaszczyk Jan 17, 2023
d5b57b9
Removed hide docs
maciejzelaszczyk Jan 17, 2023
b2bb910
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Jan 18, 2023
41972b4
Actually check the version change
maciejzelaszczyk Jan 19, 2023
d620d40
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Jan 19, 2023
984c4d2
Subxt metadata
maciejzelaszczyk Jan 19, 2023
e84635b
Linter cleanup
maciejzelaszczyk Jan 19, 2023
017c5eb
Merge branch 'main' into A0-1502-finality-version-e2e-test
maciejzelaszczyk Jan 31, 2023
f38f8eb
Const reorg
maciejzelaszczyk Jan 31, 2023
30046a5
Current finality version calculated based on the legacy one
maciejzelaszczyk Jan 31, 2023
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
54 changes: 35 additions & 19 deletions .github/workflows/e2e-tests-main-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -466,23 +466,23 @@ jobs:
follow-up-finalization-check: true
timeout-minutes: 10

# run-e2e-authorities-are-staking:
# needs: [build-test-docker, build-test-client]
# name: Run authorities are staking test
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout source code
# uses: actions/checkout@v2
#
# - name: Run e2e test
# uses: ./.github/actions/run-e2e-test
# with:
# test-case: authorities_are_staking
# node-count: 6
# reserved-seats: 3
# non-reserved-seats: 3
# follow-up-finalization-check: false
# timeout-minutes: 15
run-e2e-authorities-are-staking:
needs: [build-test-docker, build-test-client]
name: Run authorities are staking test
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Run e2e test
uses: ./.github/actions/run-e2e-test
with:
test-case: authorities_are_staking
node-count: 6
reserved-seats: 3
non-reserved-seats: 3
follow-up-finalization-check: true
timeout-minutes: 15

run-e2e-ban-automatic:
needs: [build-test-docker, build-test-client]
Expand Down Expand Up @@ -570,7 +570,7 @@ jobs:
- name: Run e2e test
uses: ./.github/actions/run-e2e-test
with:
test-case: version_upgrade::schedule_version_change
test-case: finality_version::schedule_version_change
env:
UPGRADE_VERSION: 1
UPGRADE_SESSION: 3
Expand Down Expand Up @@ -683,6 +683,21 @@ jobs:
# run: |
# ./scripts/catchup_version_upgrade_test.sh

run-e2e-finality-version-change:
needs: [build-test-docker, build-test-client]
name: Run finality version change test
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Run e2e test
uses: ./.github/actions/run-e2e-test
with:
test-case: finality_version::finality_version_change
follow-up-finalization-check: true
timeout-minutes: 10

check-e2e-test-suite-completion:
needs: [
run-e2e-finalization-test,
Expand All @@ -702,7 +717,7 @@ jobs:
run-e2e-rewards-stake-change,
run-e2e-rewards-change-stake-force-new-era,
run-e2e-rewards-points-basic,
# run-e2e-authorities-are-staking,
run-e2e-authorities-are-staking,
run-e2e-ban-automatic,
run-e2e-ban-manual,
run-e2e-ban-counter-clearing,
Expand All @@ -712,6 +727,7 @@ jobs:
run-e2e-adder-contract-test,
# run-e2e-failing-version-upgrade,
# run-e2e-version-upgrade-catchup,
run-e2e-finality-version-change,
timorl marked this conversation as resolved.
Show resolved Hide resolved
]
name: Check e2e test suite completion
runs-on: ubuntu-20.04
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/nightly-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,22 +158,6 @@ jobs:
if-no-files-found: error
retention-days: 7

run-e2e-authorities-are-staking:
needs: [build-test-docker, build-test-client]
name: Run authorities are staking test
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Run e2e test
uses: ./.github/actions/run-e2e-test
with:
test-case: authorities_are_staking
node-count: 6
follow-up-finalization-check: true
timeout-minutes: 60

run-e2e-high-out-latency:
needs: [build-synthetic-network-docker, build-test-client]
name: Run high out-latency test
Expand Down Expand Up @@ -210,7 +194,6 @@ jobs:

check-e2e-test-suite-completion:
needs: [
run-e2e-authorities-are-staking,
run-e2e-high-out-latency,
run-e2e-no-quorum-without-high-out-latency,
]
Expand Down
8 changes: 4 additions & 4 deletions 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 aleph-client/Cargo.lock

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

3 changes: 2 additions & 1 deletion aleph-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "aleph_client"
version = "2.12.0"
# TODO bump major version when API stablize
version = "2.13.0"
edition = "2021"
license = "Apache 2.0"

Expand Down
20 changes: 11 additions & 9 deletions aleph-client/src/aleph_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6353,9 +6353,10 @@ pub mod api {
"NextAuthorities",
vec![],
[
241u8, 145u8, 255u8, 235u8, 191u8, 220u8, 57u8, 89u8, 8u8, 134u8, 72u8,
193u8, 247u8, 37u8, 54u8, 201u8, 136u8, 32u8, 11u8, 199u8, 134u8,
207u8, 154u8, 107u8, 71u8, 121u8, 245u8, 153u8, 9u8, 33u8, 70u8, 3u8,
223u8, 196u8, 18u8, 234u8, 75u8, 169u8, 31u8, 25u8, 180u8, 189u8, 78u8,
192u8, 179u8, 27u8, 218u8, 254u8, 245u8, 211u8, 86u8, 33u8, 113u8,
114u8, 214u8, 133u8, 240u8, 211u8, 232u8, 163u8, 123u8, 98u8, 114u8,
26u8,
],
)
}
Expand Down Expand Up @@ -6430,9 +6431,10 @@ pub mod api {
"FinalityVersion",
vec![],
[
99u8, 158u8, 103u8, 180u8, 128u8, 32u8, 84u8, 110u8, 229u8, 2u8, 3u8,
114u8, 95u8, 125u8, 230u8, 210u8, 56u8, 85u8, 38u8, 136u8, 49u8, 206u8,
6u8, 136u8, 193u8, 164u8, 251u8, 60u8, 125u8, 91u8, 205u8, 144u8,
134u8, 19u8, 94u8, 247u8, 125u8, 18u8, 148u8, 160u8, 167u8, 235u8,
174u8, 4u8, 107u8, 69u8, 55u8, 187u8, 249u8, 13u8, 129u8, 99u8, 116u8,
158u8, 38u8, 29u8, 239u8, 112u8, 150u8, 92u8, 151u8, 197u8, 223u8,
30u8,
],
)
}
Expand Down Expand Up @@ -19553,9 +19555,9 @@ pub mod api {
let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS);
if runtime_metadata_hash
!= [
51u8, 153u8, 218u8, 203u8, 158u8, 62u8, 141u8, 96u8, 177u8, 177u8, 12u8, 204u8,
220u8, 53u8, 42u8, 155u8, 22u8, 96u8, 238u8, 212u8, 98u8, 225u8, 39u8, 241u8, 52u8,
28u8, 166u8, 99u8, 14u8, 192u8, 65u8, 67u8,
129u8, 53u8, 4u8, 85u8, 248u8, 69u8, 122u8, 6u8, 68u8, 150u8, 173u8, 133u8, 118u8,
19u8, 96u8, 223u8, 153u8, 160u8, 226u8, 156u8, 47u8, 53u8, 206u8, 110u8, 204u8,
37u8, 67u8, 45u8, 176u8, 126u8, 21u8, 133u8,
]
{
Err(::subxt::error::MetadataError::IncompatibleMetadata)
Expand Down
29 changes: 28 additions & 1 deletion aleph-client/src/pallets/aleph.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use codec::Encode;
use primitives::{BlockNumber, SessionIndex};
use primitives::{BlockNumber, SessionIndex, Version};
use subxt::rpc_params;

use crate::{
api,
api::runtime_types::{
pallet_aleph::pallet::Call::set_emergency_finalizer, primitives::app::Public,
sp_core::ed25519::Public as EdPublic,
Expand All @@ -15,6 +16,15 @@ use crate::{
};

// TODO replace docs with link to pallet aleph docs, once they are published
/// Pallet aleph API which does not require sudo.
#[async_trait::async_trait]
pub trait AlephApi {
/// Gets the current finality version.
async fn finality_version(&self, at: Option<BlockHash>) -> Version;
/// Gets the finality version for the next session.
async fn next_session_finality_version(&self, at: Option<BlockHash>) -> Version;
}

/// Pallet aleph API that requires sudo.
#[async_trait::async_trait]
pub trait AlephSudoApi {
Expand Down Expand Up @@ -57,6 +67,23 @@ pub trait AlephRpc {
) -> anyhow::Result<()>;
}

#[async_trait::async_trait]
impl<C: ConnectionApi> AlephApi for C {
async fn finality_version(&self, at: Option<BlockHash>) -> Version {
let addrs = api::storage().aleph().finality_version();

self.get_storage_entry(&addrs, at).await
}

async fn next_session_finality_version(&self, hash: Option<BlockHash>) -> Version {
let method = "state_call";
let api_method = "AlephSessionApi_next_session_finality_version";
let params = rpc_params![api_method, "0x", hash];

self.rpc_call(method.to_string(), params).await.unwrap()
}
}

#[async_trait::async_trait]
impl AlephSudoApi for RootConnection {
async fn set_emergency_finalizer(
Expand Down
4 changes: 2 additions & 2 deletions benches/payout-stakers/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 bin/cliain/Cargo.lock

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

25 changes: 21 additions & 4 deletions bin/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
use std::{collections::HashSet, str::FromStr};
use std::{collections::HashSet, str::FromStr, string::ToString};

use aleph_primitives::{
staking::{MIN_NOMINATOR_BOND, MIN_VALIDATOR_BOND},
AuthorityId as AlephId, ADDRESSES_ENCODING, TOKEN, TOKEN_DECIMALS,
AuthorityId as AlephId, Version as FinalityVersion, ADDRESSES_ENCODING,
LEGACY_FINALITY_VERSION, TOKEN, TOKEN_DECIMALS,
};
use aleph_runtime::{
AccountId, AuraConfig, BalancesConfig, ElectionsConfig, GenesisConfig, Perbill, SessionConfig,
SessionKeys, StakingConfig, SudoConfig, SystemConfig, VestingConfig, WASM_BINARY,
AccountId, AlephConfig, AuraConfig, BalancesConfig, ElectionsConfig, GenesisConfig, Perbill,
SessionConfig, SessionKeys, StakingConfig, SudoConfig, SystemConfig, VestingConfig,
WASM_BINARY,
};
use libp2p::PeerId;
use pallet_staking::{Forcing, StakerStatus};
Expand Down Expand Up @@ -136,6 +138,10 @@ pub struct ChainParams {
/// Minimum number of stakers before chain enters emergency state.
#[arg(long, default_value = "4")]
min_validator_count: u32,

/// Finality version at chain inception.
#[arg(long, default_value = LEGACY_FINALITY_VERSION.to_string())]
finality_version: FinalityVersion,
}

impl ChainParams {
Expand Down Expand Up @@ -170,6 +176,10 @@ impl ChainParams {
pub fn min_validator_count(&self) -> u32 {
self.min_validator_count
}

pub fn finality_version(&self) -> FinalityVersion {
self.finality_version
}
}

fn system_properties(token_symbol: String) -> serde_json::map::Map<String, Value> {
Expand Down Expand Up @@ -218,6 +228,7 @@ fn generate_chain_spec_config(
let sudo_account = chain_params.sudo_account_id();
let faucet_account = chain_params.faucet_account_id();
let min_validator_count = chain_params.min_validator_count();
let finality_version = chain_params.finality_version();

Ok(ChainSpec::from_genesis(
// Name
Expand All @@ -233,6 +244,7 @@ fn generate_chain_spec_config(
faucet_account.clone(), // Pre-funded faucet account
controller_accounts.clone(), // Controller accounts for staking.
min_validator_count,
finality_version,
)
},
// Bootnodes
Expand Down Expand Up @@ -335,6 +347,7 @@ fn generate_genesis_config(
faucet_account: Option<AccountId>,
controller_accounts: Vec<AccountId>,
min_validator_count: u32,
finality_version: FinalityVersion,
) -> GenesisConfig {
let special_accounts = match faucet_account {
Some(faucet_id) => vec![sudo_account.clone(), faucet_id],
Expand Down Expand Up @@ -398,6 +411,10 @@ fn generate_genesis_config(
min_nominator_bond: MIN_NOMINATOR_BOND,
..Default::default()
},
aleph: AlephConfig {
finality_version,
..Default::default()
},
treasury: Default::default(),
vesting: VestingConfig { vesting: vec![] },
nomination_pools: Default::default(),
Expand Down
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.9.0"
version = "0.9.1"
authors = ["Cardinal Cryptography"]
edition = "2021"
homepage = "https://alephzero.org"
Expand Down
Loading