diff --git a/nomos-core/src/fountain/mock.rs b/nomos-core/src/fountain/mock.rs index 109013f7..a6ec9b46 100644 --- a/nomos-core/src/fountain/mock.rs +++ b/nomos-core/src/fountain/mock.rs @@ -8,6 +8,7 @@ use crate::fountain::{FountainCode, FountainError}; /// Fountain code that does no protocol at all. /// Just bypasses the raw bytes into a single chunk and reconstruct from it. +#[derive(Debug)] pub struct MockFountain; #[async_trait] diff --git a/nomos-services/consensus/src/lib.rs b/nomos-services/consensus/src/lib.rs index 12d22f2b..68dfaf85 100644 --- a/nomos-services/consensus/src/lib.rs +++ b/nomos-services/consensus/src/lib.rs @@ -56,6 +56,16 @@ impl Clone for CarnotSettings { } } +impl CarnotSettings { + #[inline] + pub const fn new(private_key: [u8; 32], fountain_settings: Fountain::Settings) -> Self { + Self { + private_key, + fountain_settings, + } + } +} + pub struct CarnotConsensus where F: FountainCode, diff --git a/nomos-services/mempool/tests/mock.rs b/nomos-services/mempool/tests/mock.rs index 2939e0ae..95a8f6c8 100644 --- a/nomos-services/mempool/tests/mock.rs +++ b/nomos-services/mempool/tests/mock.rs @@ -95,7 +95,7 @@ fn test_mockmempool() { let (mtx, mrx) = tokio::sync::oneshot::channel(); mempool_outbound .send(MempoolMsg::View { - ancestor_hint: BlockId, + ancestor_hint: BlockId::default(), reply_channel: mtx, }) .await