use exonum::{
helpers::{Height, ValidatorId},
merkledb::BinaryValue,
};
use crate::sandbox::{sandbox_tests_helper::*, supervisor::TxConfig, timestamping_sandbox};
#[test]
fn test_exclude_validator_from_consensus() {
let sandbox = timestamping_sandbox();
let sandbox_state = SandboxState::new();
add_one_height(&sandbox, &sandbox_state);
let tx_cfg = {
let mut consensus_cfg = sandbox.cfg();
consensus_cfg.validator_keys.swap_remove(0);
TxConfig::create_signed(
sandbox.public_key(ValidatorId(0)),
&consensus_cfg.into_bytes(),
Height(0),
sandbox.secret_key(ValidatorId(0)),
)
};
add_one_height_with_transactions(&sandbox, &sandbox_state, &[tx_cfg]);
add_one_height_with_transactions_from_other_validator(&sandbox, &sandbox_state, &[]);
}