Skip to content
Merged
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
12 changes: 9 additions & 3 deletions finality-aleph/src/party/manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{collections::HashSet, marker::PhantomData, sync::Arc};
use aleph_primitives::{AlephSessionApi, KEY_TYPE};
use async_trait::async_trait;
use futures::channel::oneshot;
use log::{debug, trace, warn};
use log::{debug, info, trace, warn};
use sc_client_api::Backend;
use sp_consensus::SelectChain;
use sp_keystore::CryptoStore;
Expand Down Expand Up @@ -345,8 +345,14 @@ where
{
#[cfg(feature = "only_legacy")]
_ if self.only_legacy() => self.legacy_subtasks(params),
Ok(version) if version == CURRENT_VERSION => self.current_subtasks(params),
Ok(version) if version == LEGACY_VERSION => self.legacy_subtasks(params),
Ok(version) if version == CURRENT_VERSION => {
info!(target: "aleph-party", "Running session with AlephBFT version {}, which is current.", version);
self.current_subtasks(params)
}
Ok(version) if version == LEGACY_VERSION => {
info!(target: "aleph-party", "Running session with AlephBFT version {}, which is legacy.", version);
Comment thread
kostekIV marked this conversation as resolved.
self.legacy_subtasks(params)
}
Ok(version) => {
panic!("Unsupported version {}. Supported versions: {} or {}. Potentially outdated node.", version, LEGACY_VERSION, CURRENT_VERSION)
}
Expand Down