Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cryptape/bft-rs
/ functions
Functions
61 in github.com/cryptape/bft-rs
⨍
Functions
61
◇
Types & classes
21
↓ 25 callers
Method
change_to_step
(&mut self, step: Step)
src/algorithm.rs:239
↓ 12 callers
Function
generate_auth_list
()
tests/tests.rs:96
↓ 12 callers
Method
handle_message
( &mut self, msg: BftMsg, s_1: Sender<BftMsg>, s_2: Sender<BftMsg>, s_
tests/tests.rs:28
↓ 12 callers
Function
start_process
(address: Address)
tests/tests.rs:55
↓ 7 callers
Method
new_round_start
(&mut self)
src/algorithm.rs:853
↓ 7 callers
Method
send_bft_msg
(&self, msg: BftMsg)
src/algorithm.rs:224
↓ 7 callers
Method
set_timer
(&self, duration: Duration, step: Step)
src/algorithm.rs:211
↓ 5 callers
Method
get_prevote
A function to get prevote wait duration.
src/params.rs:59
↓ 5 callers
Method
goto_next_round
(&mut self)
src/algorithm.rs:250
↓ 5 callers
Method
transmit_prevote
(&mut self)
src/algorithm.rs:505
↓ 4 callers
Method
cal_above_threshold
(&self, count: usize)
src/algorithm.rs:229
↓ 4 callers
Method
check_precommit_count
(&mut self)
src/algorithm.rs:712
↓ 4 callers
Function
generate_proposal
()
tests/tests.rs:100
↓ 4 callers
Method
proc_commit
(&mut self)
src/algorithm.rs:749
↓ 4 callers
Function
random_offline
()
tests/integration_cases/test_random_offline.rs:18
↓ 4 callers
Method
transmit_precommit
(&mut self)
src/algorithm.rs:680
↓ 3 callers
Method
add
A function try to add a vote, return `bool`.
src/voteset.rs:26
↓ 3 callers
Method
check_prevote_count
(&mut self)
src/algorithm.rs:588
↓ 3 callers
Method
clean_polc
(&mut self)
src/algorithm.rs:786
↓ 3 callers
Method
set_polc
(&mut self, hash: &Target, voteset: &VoteSet, vote_type: VoteType)
src/algorithm.rs:770
↓ 3 callers
Function
transmit_genesis
( s_1: Sender<BftMsg>, s_2: Sender<BftMsg>, s_3: Sender<BftMsg>, s_4: Sender<BftMsg>, )
tests/tests.rs:62
↓ 3 callers
Method
try_save_vote
(&mut self, vote: Vote)
src/algorithm.rs:538
↓ 2 callers
Method
cal_all_vote
(&self, count: usize)
src/algorithm.rs:234
↓ 2 callers
Method
check_verify
(&mut self)
src/algorithm.rs:653
↓ 2 callers
Method
get_precommit
A function to get precommit wait duration.
src/params.rs:64
↓ 2 callers
Method
get_propose
A function to get propose wait duration.
src/params.rs:54
↓ 2 callers
Method
get_voteset
A function to get the vote set of the height, the round, and the vote type.
src/voteset.rs:72
↓ 2 callers
Method
retransmit_vote
(&self, round: usize)
src/algorithm.rs:277
↓ 2 callers
Function
transmit_msg
(msg: BftMsg, s_1: Sender<BftMsg>, s_2: Sender<BftMsg>, s_3: Sender<BftMsg>)
tests/tests.rs:110
↓ 1 callers
Method
clean_filter
(&mut self)
src/algorithm.rs:244
↓ 1 callers
Method
clean_save_info
(&mut self)
src/algorithm.rs:266
↓ 1 callers
Method
clear_prevote_count
A function to clean prevote count HashMap at the begining of a height.
src/voteset.rs:84
↓ 1 callers
Method
determine_height_filter
(&self, sender: Address)
src/algorithm.rs:306
↓ 1 callers
Method
determine_round_filter
(&self, sender: Address)
src/algorithm.rs:325
↓ 1 callers
Method
extract_polc
A function to abstract the PoLC of the round.
src/voteset.rs:126
↓ 1 callers
Method
goto_new_height
(&mut self, new_height: usize)
src/algorithm.rs:257
↓ 1 callers
Method
handle_proposal
(&self, proposal: Proposal)
src/algorithm.rs:438
↓ 1 callers
Method
is_proposer
(&self)
src/algorithm.rs:344
↓ 1 callers
Function
is_success
(result: Vec<Target>)
tests/integration_cases/test_verify.rs:16
↓ 1 callers
Function
is_success
(result: Vec<Target>)
tests/integration_cases/test_random_offline.rs:28
↓ 1 callers
Function
is_success
(result: Vec<Target>)
tests/integration_cases/test_bft.rs:14
↓ 1 callers
Method
process
(&mut self, bft_msg: BftMsg)
src/algorithm.rs:869
↓ 1 callers
Method
save_verify_resp
(&mut self, verify_result: VerifyResp)
src/algorithm.rs:835
↓ 1 callers
Method
set_proposal
(&mut self, proposal: Proposal)
src/algorithm.rs:460
↓ 1 callers
Method
set_total_duration
A function to set total interval.
src/params.rs:49
↓ 1 callers
Method
timeout_process
(&mut self, tminfo: &TimeoutInfo)
src/algorithm.rs:974
↓ 1 callers
Method
try_handle_feed
(&mut self, feed: Feed)
src/algorithm.rs:821
↓ 1 callers
Method
try_handle_status
(&mut self, rich_status: Status)
src/algorithm.rs:796
↓ 1 callers
Method
try_transmit_proposal
(&mut self)
src/algorithm.rs:375
Method
default
()
src/params.rs:37
Method
default
()
src/algorithm.rs:59
Method
initialize
( s: Sender<BftMsg>, r: Receiver<BftMsg>, ts: Sender<TimeoutInfo>, tn: Receive
src/algorithm.rs:146
Method
new
A function to create a new BFT vote collector.
src/voteset.rs:18
Method
new
A function to create a new BFT params.
src/params.rs:17
Method
new
A function to create a new timeout infomation channel.
src/timer.rs:30
Method
new
()
tests/tests.rs:21
Method
start
A function to start a BFT state machine.
src/algorithm.rs:92
Method
start
A function to start a timer.
src/timer.rs:38
Function
test_bft
()
tests/integration_cases/test_bft.rs:29
Function
test_random_offline
()
tests/integration_cases/test_random_offline.rs:43
Function
test_verify
()
tests/integration_cases/test_verify.rs:32