mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Configure node for a multi-node testnet
This commit is contained in:
@@ -28,8 +28,8 @@ pub use block_import::TendermintSelectChain;
|
||||
pub(crate) mod authority;
|
||||
pub use authority::TendermintAuthority;
|
||||
|
||||
const CONSENSUS_ID: [u8; 4] = *b"tend";
|
||||
const KEY_TYPE_ID: KeyTypeId = KeyTypeId(CONSENSUS_ID);
|
||||
pub const CONSENSUS_ID: [u8; 4] = *b"tend";
|
||||
pub const KEY_TYPE_ID: KeyTypeId = KeyTypeId(CONSENSUS_ID);
|
||||
|
||||
/// Trait consolidating all generics required by sc_tendermint for processing.
|
||||
pub trait TendermintClient: Send + Sync + 'static {
|
||||
|
||||
@@ -38,7 +38,6 @@ impl TendermintValidatorsStruct {
|
||||
let api = client.runtime_api();
|
||||
let session = api.current_session(&BlockId::Hash(last)).unwrap();
|
||||
let validators = api.validators(&BlockId::Hash(last)).unwrap();
|
||||
assert_eq!(validators.len(), 1);
|
||||
|
||||
Self {
|
||||
session,
|
||||
|
||||
Reference in New Issue
Block a user