MCPcopy Create free account

hub / github.com/anthdm/hbbft / functions

Functions165 in github.com/anthdm/hbbft

↓ 1 callersFunctionnewTx
Size can be used to simulate large transactions in the network.
bench/main.go:99
↓ 1 callersMethodprocessBroadcast
(pid uint64, fun func(rbc *RBC) error)
acs.go:230
↓ 1 callersMethodremoveOldEpochs
removeOldEpochs removes the ACS instances that have already been terminated.
honey_badger.go:211
↓ 1 callersMethodrun
()
honey_badger_test.go:39
↓ 1 callersMethodrun
()
rbc.go:156
↓ 1 callersMethodrun
()
rbc_test.go:181
↓ 1 callersMethodrun
()
acs.go:201
↓ 1 callersMethodrun
()
simulation/main.go:174
↓ 1 callersFunctionsample
(txx []Transaction, n int)
buffer.go:83
↓ 1 callersMethodsample
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 callersFunctiontestCommonSubset
(t *testing.T, inputs map[int][]byte)
acs_test.go:22
↓ 1 callersMethodtryCompleteAgreement
()
acs.go:295
↓ 1 callersMethodtryOutputAgreement
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 callersMethodtxLoop
Loop that is creating bunch of random transactions.
simulation/main.go:129
MethodAddr
Addr implements the Transport interface.
local_transport.go:67
MethodConnect
Connect implements the Transport interface.
local_transport.go:59
MethodConsume
Consume implements the Transport interface.
local_transport.go:27
MethodHandleMessage
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
MethodHandleMessage
HandleMessage will process the given ACSMessage for the given epoch.
honey_badger.go:79
MethodHash
Hash implements the hbbft.Transaction interface.
bench/main.go:107
MethodHash
Hash implements the hbbft.Transaction interface.
simulation/main.go:219
MethodLen
()
rbc.go:42
MethodLenMempool
LenMempool returns the number of transactions in the buffer.
honey_badger.go:109
MethodLess
(i, j int)
rbc.go:44
MethodMessages
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
MethodSendMessage
SendMessage implements the transport interface.
local_transport.go:54
MethodString
()
buffer_test.go:79
MethodSwap
(i, j int)
rbc.go:43
FunctionTestACSGoodNodes
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
FunctionTestACSOutputIsNilAfterConsuming
(t *testing.T)
acs_test.go:99
FunctionTestAdvanceEpochInBBA
(t *testing.T)
bba_test.go:93
FunctionTestAgreement1FalseNode
(t *testing.T)
bba_test.go:32
FunctionTestAgreement2FalseNodes
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
FunctionTestAgreementGoodNodes
(t *testing.T)
bba_test.go:36
FunctionTestBBAStepByStep
(t *testing.T)
bba_test.go:40
FunctionTestBroadcast
(t *testing.T)
transport_test.go:54
FunctionTestBufferDelete
(t *testing.T)
buffer_test.go:14
FunctionTestBufferPush
(t *testing.T)
buffer_test.go:30
FunctionTestBufferSample
(t *testing.T)
buffer_test.go:47
FunctionTestEngineAddTransaction
(t *testing.T)
honey_badger_test.go:11
FunctionTestFaultyAgreement
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
FunctionTestMakeProofRequests
(t *testing.T)
rbc_test.go:139
FunctionTestMakeShards
(t *testing.T)
rbc_test.go:122
FunctionTestNewACS
(t *testing.T)
acs_test.go:75
FunctionTestNewBBA
(t *testing.T)
bba_test.go:81
FunctionTestNewReliableBroadcast
(t *testing.T)
rbc_test.go:84
FunctionTestRBC1FaultyNode
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
FunctionTestRBC4GoodNodes
Test RBC with 4 good nodes in the network. We expect all 4 nodes to output the proposed value.
rbc_test.go:48
FunctionTestRBCInputValue
(t *testing.T)
rbc_test.go:73
FunctionTestRBCMessagesIsEmptyAfterConsuming
(t *testing.T)
rbc_test.go:115
FunctionTestRBCOutputIsNilAfterConsuming
(t *testing.T)
rbc_test.go:107
FunctionTestSendProofMessages
(t *testing.T)
transport_test.go:10
MethodaddMessage
(msg interface{}, to uint64)
message_que.go:25
MethodaddMessages
(msgs ...MessageTuple)
message_que.go:31
MethodaddQue
(que *messageQue)
message_que.go:37
Functioninit
()
honey_badger_test.go:90
Functioninit
()
buffer.go:91
Functioninit
()
bench/main.go:113
Functioninit
()
simulation/main.go:233
Functionmain
()
bench/main.go:13
Functionmain
()
simulation/main.go:32
FunctionmakeTestNodes
(n int)
honey_badger_test.go:67
Methodpropose
()
honey_badger_test.go:57
Methodstop
()
rbc.go:152
Methodstop
()
acs.go:197
← previous101–165 of 165, ranked by callers