mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 19:11:02 +00:00
BEEFY: define on-chain beefy-genesis and use it to coordinate voter initialization (#13215)
* beefy: add support to configure BEEFY genesis * client/beefy: more flexible test runtime api * client/beefy: add tests for custom BEEFY genesis * client/beefy: ignore old state that didn't account for pallet genesis * client/beefy: fix clippy * frame/beefy: default BEEFY-genesis is block One::one() * frame/beefy: add extra doc comments --------- Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -994,8 +994,8 @@ pub(crate) mod tests {
|
||||
communication::notification::{BeefyBestBlockStream, BeefyVersionedFinalityProofStream},
|
||||
keystore::tests::Keyring,
|
||||
tests::{
|
||||
create_beefy_keystore, get_beefy_streams, make_beefy_ids, two_validators::TestApi,
|
||||
BeefyPeer, BeefyTestNet,
|
||||
create_beefy_keystore, get_beefy_streams, make_beefy_ids, BeefyPeer, BeefyTestNet,
|
||||
TestApi,
|
||||
},
|
||||
BeefyRPCLinks, KnownPeers,
|
||||
};
|
||||
@@ -1068,7 +1068,7 @@ pub(crate) mod tests {
|
||||
};
|
||||
|
||||
let backend = peer.client().as_backend();
|
||||
let api = Arc::new(TestApi {});
|
||||
let api = Arc::new(TestApi::with_validator_set(&genesis_validator_set));
|
||||
let network = peer.network_service().clone();
|
||||
let known_peers = Arc::new(Mutex::new(KnownPeers::new()));
|
||||
let gossip_validator = Arc::new(GossipValidator::new(known_peers.clone()));
|
||||
|
||||
Reference in New Issue
Block a user