(
s: Sender<BftMsg>,
r: Receiver<BftMsg>,
ts: Sender<TimeoutInfo>,
tn: Receiver<TimeoutInfo>,
local_address: Target,
)
| 144 | |
| 145 | #[cfg(not(feature = "verify_req"))] |
| 146 | fn initialize( |
| 147 | s: Sender<BftMsg>, |
| 148 | r: Receiver<BftMsg>, |
| 149 | ts: Sender<TimeoutInfo>, |
| 150 | tn: Receiver<TimeoutInfo>, |
| 151 | local_address: Target, |
| 152 | ) -> Self { |
| 153 | info!("BFT State Machine Launched."); |
| 154 | Bft { |
| 155 | msg_sender: s, |
| 156 | msg_receiver: r, |
| 157 | timer_seter: ts, |
| 158 | timer_notity: tn, |
| 159 | |
| 160 | height: INIT_HEIGHT, |
| 161 | round: INIT_ROUND, |
| 162 | step: Step::default(), |
| 163 | feed: None, |
| 164 | proposal: None, |
| 165 | votes: VoteCollector::new(), |
| 166 | lock_status: None, |
| 167 | last_commit_round: None, |
| 168 | last_commit_proposal: None, |
| 169 | authority_list: Vec::new(), |
| 170 | htime: Instant::now(), |
| 171 | height_filter: HashMap::new(), |
| 172 | round_filter: HashMap::new(), |
| 173 | params: BftParams::new(local_address), |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | #[cfg(feature = "verify_req")] |
| 178 | fn initialize( |
nothing calls this directly
no outgoing calls
no test coverage detected