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
Prev Previous commit
Next Next commit
lint
  • Loading branch information
kostekIV committed Dec 7, 2022
commit 5fd253f6f1723939184117173f5a3d7c66ce52b3
9 changes: 6 additions & 3 deletions e2e-tests/src/test/ban.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ use aleph_client::{
pallets::{
elections::{ElectionsApi, ElectionsSudoApi},
session::SessionApi,
staking::StakingApi,
staking::{StakingApi, StakingUserApi},
},
primitives::{BanInfo, BanReason, CommitteeSeats, ElectionOpenness},
sp_core::bounded::bounded_vec::BoundedVec,
waiting::{BlockStatus, WaitingExt},
SignedConnection, TxStatus,
};
use aleph_client::pallets::staking::StakingUserApi;
use log::info;
use primitives::{
SessionCount, DEFAULT_BAN_MINIMAL_EXPECTED_PERFORMANCE, DEFAULT_BAN_SESSION_COUNT_THRESHOLD,
Expand Down Expand Up @@ -58,7 +57,11 @@ async fn signed_connection_for_disabled_controller() -> SignedConnection {
let validator_seed = get_validator_seed(VALIDATOR_TO_DISABLE_OVERALL_INDEX);
let stash_controller = NodeKeys::from(validator_seed);
let controller_key_to_disable = stash_controller.controller;
SignedConnection::new(NODE_TO_DISABLE_ADDRESS.to_string(), controller_key_to_disable).await
SignedConnection::new(
NODE_TO_DISABLE_ADDRESS.to_string(),
controller_key_to_disable,
)
.await
}

/// Runs a chain, sets up a committee and validators. Sets an incorrect key for one of the
Expand Down