Calculate timeouts

This commit is contained in:
Luke Parker
2022-10-16 07:54:07 -04:00
parent 77ba1c00e2
commit 079eee931a
3 changed files with 28 additions and 2 deletions

View File

@@ -48,6 +48,9 @@ pub trait Network: Send + Sync {
type Weights: Weights<ValidatorId = Self::ValidatorId>;
type Block: Block;
// Block time in seconds
const BLOCK_TIME: u32;
fn weights(&self) -> Arc<Self::Weights>;
async fn broadcast(&mut self, msg: Message<Self::ValidatorId, Self::Block>);