Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthdm/hbbft
/ functions
Functions
165 in github.com/anthdm/hbbft
⨍
Functions
165
◇
Types & classes
43
↓ 1 callers
Function
newTx
Size can be used to simulate large transactions in the network.
bench/main.go:99
↓ 1 callers
Method
processBroadcast
(pid uint64, fun func(rbc *RBC) error)
acs.go:230
↓ 1 callers
Method
removeOldEpochs
removeOldEpochs removes the ACS instances that have already been terminated.
honey_badger.go:211
↓ 1 callers
Method
run
()
honey_badger_test.go:39
↓ 1 callers
Method
run
()
rbc.go:156
↓ 1 callers
Method
run
()
rbc_test.go:181
↓ 1 callers
Method
run
()
acs.go:201
↓ 1 callers
Method
run
()
simulation/main.go:174
↓ 1 callers
Function
sample
(txx []Transaction, n int)
buffer.go:83
↓ 1 callers
Method
sample
sample will return (n) elements from the buffer with (m) as its maximum upperbound. [ a ] [ b ] [ c ] m [ d ] In the above example there can be only s
buffer.go:68
↓ 1 callers
Function
testCommonSubset
(t *testing.T, inputs map[int][]byte)
acs_test.go:22
↓ 1 callers
Method
tryCompleteAgreement
()
acs.go:295
↓ 1 callers
Method
tryOutputAgreement
tryOutputAgreement waits until at least (N - f) output messages received, once the (N - f) messages are received, make a common coin and uses it to co
bba.go:278
↓ 1 callers
Method
txLoop
Loop that is creating bunch of random transactions.
simulation/main.go:129
Method
Addr
Addr implements the Transport interface.
local_transport.go:67
Method
Connect
Connect implements the Transport interface.
local_transport.go:59
Method
Consume
Consume implements the Transport interface.
local_transport.go:27
Method
HandleMessage
HandleMessage will process the given rpc message and will return a possible outcome. The caller is resposible to make sure only RPC messages are passe
rbc.go:142
Method
HandleMessage
HandleMessage will process the given ACSMessage for the given epoch.
honey_badger.go:79
Method
Hash
Hash implements the hbbft.Transaction interface.
bench/main.go:107
Method
Hash
Hash implements the hbbft.Transaction interface.
simulation/main.go:219
Method
Len
()
rbc.go:42
Method
LenMempool
LenMempool returns the number of transactions in the buffer.
honey_badger.go:109
Method
Less
(i, j int)
rbc.go:44
Method
Messages
Messages returns all the internal messages from the message que. Note that the que will be empty after invoking this method.
honey_badger.go:69
Method
SendMessage
SendMessage implements the transport interface.
local_transport.go:54
Method
String
()
buffer_test.go:79
Method
Swap
(i, j int)
rbc.go:43
Function
TestACSGoodNodes
Test ACS with 4 good nodes. The result should be that at least the output of (N - f) nodes has been provided.
acs_test.go:12
Function
TestACSOutputIsNilAfterConsuming
(t *testing.T)
acs_test.go:99
Function
TestAdvanceEpochInBBA
(t *testing.T)
bba_test.go:93
Function
TestAgreement1FalseNode
(t *testing.T)
bba_test.go:32
Function
TestAgreement2FalseNodes
Test BBA with 2 false and 2 true nodes, cause binary agreement is not a majority vote it guarantees that all good nodes output a least the output of o
bba_test.go:28
Function
TestAgreementGoodNodes
(t *testing.T)
bba_test.go:36
Function
TestBBAStepByStep
(t *testing.T)
bba_test.go:40
Function
TestBroadcast
(t *testing.T)
transport_test.go:54
Function
TestBufferDelete
(t *testing.T)
buffer_test.go:14
Function
TestBufferPush
(t *testing.T)
buffer_test.go:30
Function
TestBufferSample
(t *testing.T)
buffer_test.go:47
Function
TestEngineAddTransaction
(t *testing.T)
honey_badger_test.go:11
Function
TestFaultyAgreement
Testing BBA should cover all of the following specifications. 1. If a correct node outputs the value (b), then every good node outputs (b). 2. If all
bba_test.go:21
Function
TestMakeProofRequests
(t *testing.T)
rbc_test.go:139
Function
TestMakeShards
(t *testing.T)
rbc_test.go:122
Function
TestNewACS
(t *testing.T)
acs_test.go:75
Function
TestNewBBA
(t *testing.T)
bba_test.go:81
Function
TestNewReliableBroadcast
(t *testing.T)
rbc_test.go:84
Function
TestRBC1FaultyNode
Test RBC where 1 node will not provide its value. We use 4 nodes that will tolerate 1 faulty node. The 3 good nodes should be able te reconstruct the
rbc_test.go:16
Function
TestRBC4GoodNodes
Test RBC with 4 good nodes in the network. We expect all 4 nodes to output the proposed value.
rbc_test.go:48
Function
TestRBCInputValue
(t *testing.T)
rbc_test.go:73
Function
TestRBCMessagesIsEmptyAfterConsuming
(t *testing.T)
rbc_test.go:115
Function
TestRBCOutputIsNilAfterConsuming
(t *testing.T)
rbc_test.go:107
Function
TestSendProofMessages
(t *testing.T)
transport_test.go:10
Method
addMessage
(msg interface{}, to uint64)
message_que.go:25
Method
addMessages
(msgs ...MessageTuple)
message_que.go:31
Method
addQue
(que *messageQue)
message_que.go:37
Function
init
()
honey_badger_test.go:90
Function
init
()
buffer.go:91
Function
init
()
bench/main.go:113
Function
init
()
simulation/main.go:233
Function
main
()
bench/main.go:13
Function
main
()
simulation/main.go:32
Function
makeTestNodes
(n int)
honey_badger_test.go:67
Method
propose
()
honey_badger_test.go:57
Method
stop
()
rbc.go:152
Method
stop
()
acs.go:197
← previous
101–165 of 165, ranked by callers