MCPcopy Index your code

hub / github.com/cryptape/bft-rs / functions

Functions61 in github.com/cryptape/bft-rs

↓ 25 callersMethodchange_to_step
(&mut self, step: Step)
src/algorithm.rs:239
↓ 12 callersFunctiongenerate_auth_list
()
tests/tests.rs:96
↓ 12 callersMethodhandle_message
( &mut self, msg: BftMsg, s_1: Sender<BftMsg>, s_2: Sender<BftMsg>, s_
tests/tests.rs:28
↓ 12 callersFunctionstart_process
(address: Address)
tests/tests.rs:55
↓ 7 callersMethodnew_round_start
(&mut self)
src/algorithm.rs:853
↓ 7 callersMethodsend_bft_msg
(&self, msg: BftMsg)
src/algorithm.rs:224
↓ 7 callersMethodset_timer
(&self, duration: Duration, step: Step)
src/algorithm.rs:211
↓ 5 callersMethodget_prevote
A function to get prevote wait duration.
src/params.rs:59
↓ 5 callersMethodgoto_next_round
(&mut self)
src/algorithm.rs:250
↓ 5 callersMethodtransmit_prevote
(&mut self)
src/algorithm.rs:505
↓ 4 callersMethodcal_above_threshold
(&self, count: usize)
src/algorithm.rs:229
↓ 4 callersMethodcheck_precommit_count
(&mut self)
src/algorithm.rs:712
↓ 4 callersFunctiongenerate_proposal
()
tests/tests.rs:100
↓ 4 callersMethodproc_commit
(&mut self)
src/algorithm.rs:749
↓ 4 callersFunctionrandom_offline
()
tests/integration_cases/test_random_offline.rs:18
↓ 4 callersMethodtransmit_precommit
(&mut self)
src/algorithm.rs:680
↓ 3 callersMethodadd
A function try to add a vote, return `bool`.
src/voteset.rs:26
↓ 3 callersMethodcheck_prevote_count
(&mut self)
src/algorithm.rs:588
↓ 3 callersMethodclean_polc
(&mut self)
src/algorithm.rs:786
↓ 3 callersMethodset_polc
(&mut self, hash: &Target, voteset: &VoteSet, vote_type: VoteType)
src/algorithm.rs:770
↓ 3 callersFunctiontransmit_genesis
( s_1: Sender<BftMsg>, s_2: Sender<BftMsg>, s_3: Sender<BftMsg>, s_4: Sender<BftMsg>, )
tests/tests.rs:62
↓ 3 callersMethodtry_save_vote
(&mut self, vote: Vote)
src/algorithm.rs:538
↓ 2 callersMethodcal_all_vote
(&self, count: usize)
src/algorithm.rs:234
↓ 2 callersMethodcheck_verify
(&mut self)
src/algorithm.rs:653
↓ 2 callersMethodget_precommit
A function to get precommit wait duration.
src/params.rs:64
↓ 2 callersMethodget_propose
A function to get propose wait duration.
src/params.rs:54
↓ 2 callersMethodget_voteset
A function to get the vote set of the height, the round, and the vote type.
src/voteset.rs:72
↓ 2 callersMethodretransmit_vote
(&self, round: usize)
src/algorithm.rs:277
↓ 2 callersFunctiontransmit_msg
(msg: BftMsg, s_1: Sender<BftMsg>, s_2: Sender<BftMsg>, s_3: Sender<BftMsg>)
tests/tests.rs:110
↓ 1 callersMethodclean_filter
(&mut self)
src/algorithm.rs:244
↓ 1 callersMethodclean_save_info
(&mut self)
src/algorithm.rs:266
↓ 1 callersMethodclear_prevote_count
A function to clean prevote count HashMap at the begining of a height.
src/voteset.rs:84
↓ 1 callersMethoddetermine_height_filter
(&self, sender: Address)
src/algorithm.rs:306
↓ 1 callersMethoddetermine_round_filter
(&self, sender: Address)
src/algorithm.rs:325
↓ 1 callersMethodextract_polc
A function to abstract the PoLC of the round.
src/voteset.rs:126
↓ 1 callersMethodgoto_new_height
(&mut self, new_height: usize)
src/algorithm.rs:257
↓ 1 callersMethodhandle_proposal
(&self, proposal: Proposal)
src/algorithm.rs:438
↓ 1 callersMethodis_proposer
(&self)
src/algorithm.rs:344
↓ 1 callersFunctionis_success
(result: Vec<Target>)
tests/integration_cases/test_verify.rs:16
↓ 1 callersFunctionis_success
(result: Vec<Target>)
tests/integration_cases/test_random_offline.rs:28
↓ 1 callersFunctionis_success
(result: Vec<Target>)
tests/integration_cases/test_bft.rs:14
↓ 1 callersMethodprocess
(&mut self, bft_msg: BftMsg)
src/algorithm.rs:869
↓ 1 callersMethodsave_verify_resp
(&mut self, verify_result: VerifyResp)
src/algorithm.rs:835
↓ 1 callersMethodset_proposal
(&mut self, proposal: Proposal)
src/algorithm.rs:460
↓ 1 callersMethodset_total_duration
A function to set total interval.
src/params.rs:49
↓ 1 callersMethodtimeout_process
(&mut self, tminfo: &TimeoutInfo)
src/algorithm.rs:974
↓ 1 callersMethodtry_handle_feed
(&mut self, feed: Feed)
src/algorithm.rs:821
↓ 1 callersMethodtry_handle_status
(&mut self, rich_status: Status)
src/algorithm.rs:796
↓ 1 callersMethodtry_transmit_proposal
(&mut self)
src/algorithm.rs:375
Methoddefault
()
src/params.rs:37
Methoddefault
()
src/algorithm.rs:59
Methodinitialize
( s: Sender<BftMsg>, r: Receiver<BftMsg>, ts: Sender<TimeoutInfo>, tn: Receive
src/algorithm.rs:146
Methodnew
A function to create a new BFT vote collector.
src/voteset.rs:18
Methodnew
A function to create a new BFT params.
src/params.rs:17
Methodnew
A function to create a new timeout infomation channel.
src/timer.rs:30
Methodnew
()
tests/tests.rs:21
Methodstart
A function to start a BFT state machine.
src/algorithm.rs:92
Methodstart
A function to start a timer.
src/timer.rs:38
Functiontest_bft
()
tests/integration_cases/test_bft.rs:29
Functiontest_random_offline
()
tests/integration_cases/test_random_offline.rs:43
Functiontest_verify
()
tests/integration_cases/test_verify.rs:32