1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use super::model::{
    FuelBlock,
    SealedFuelBlock,
};
use anyhow::Result;
use std::sync::Arc;
use tokio::sync::oneshot;

pub enum BftMpsc {
    CheckBlockConsensus {
        block: Arc<SealedFuelBlock>,
        ret: oneshot::Sender<Result<()>>,
    },
    CheckBlockLeader {
        block: Arc<FuelBlock>,
        ret: oneshot::Sender<Result<()>>,
    },
    Stop,
    Start,
}