Test handle_p2p and Tributary syncing

Includes bug fixes.
This commit is contained in:
Luke Parker
2023-04-24 02:50:03 -04:00
parent cc491ee1e1
commit 2feebe536e
5 changed files with 224 additions and 14 deletions

View File

@@ -106,7 +106,7 @@ pub trait P2p: Send + Sync + Clone + Debug + TributaryP2p {
// TODO: Move this to tests
#[allow(clippy::type_complexity)]
#[derive(Clone, Debug)]
pub struct LocalP2p(usize, Arc<RwLock<Vec<VecDeque<(usize, Vec<u8>)>>>>);
pub struct LocalP2p(usize, pub Arc<RwLock<Vec<VecDeque<(usize, Vec<u8>)>>>>);
impl LocalP2p {
pub fn new(validators: usize) -> Vec<LocalP2p> {