MCPcopy Create free account

hub / github.com/anthdm/hbbft / functions

Functions165 in github.com/anthdm/hbbft

↓ 14 callersMethodMessages
Messages returns the que of messages. The message que get's filled after processing a protocol message. After calling this method the que will be empt
bba.go:157
↓ 9 callersMethodlen
len return the current length of the buffer.
buffer.go:52
↓ 9 callersMethodmessages
()
message_que.go:53
↓ 8 callersFunctionNewRBC
NewRBC returns a new instance of the ReliableBroadcast configured with the given config
rbc.go:96
↓ 6 callersMethodHandleMessage
HandleMessage will process the given rpc message. The caller is resposible to make sure only RPC messages are passed that are elligible for the BBA pr
bba.go:125
↓ 6 callersMethodHash
()
transaction.go:7
↓ 6 callersFunctionNewLocalTransport
NewLocalTransport returns a new LocalTransport.
local_transport.go:18
↓ 6 callersMethodOutput
Output will return the output of the ACS instance. If the output was not nil then it will return the output else nil. Note that after consuming the ou
acs.go:144
↓ 5 callersMethodConsume
Consume returns a channel used for consuming and responding to RPC requests.
transport.go:16
↓ 5 callersMethodInputValue
InputValue will set the given val as the initial value to be proposed in the Agreement and returns an initial AgreementMessage or an error.
bba.go:114
↓ 5 callersFunctionNewACS
NewACS returns a new ACS instance configured with the given Config and node ids.
acs.go:80
↓ 5 callersFunctionNewBBA
NewBBA returns a new instance of the Binary Byzantine Agreement.
bba.go:72
↓ 5 callersMethodOutput
Output will return the output of the bba instance. If the output was not nil then it will return the output else nil. Note that after consuming the ou
bba.go:145
↓ 5 callersMethodaddMessage
(msg *AgreementMessage)
bba.go:168
↓ 5 callersMethodaddMessage
(from uint64, msg interface{})
acs.go:320
↓ 4 callersMethodAddTransaction
AddTransaction adds the given transaction to the internal buffer.
honey_badger.go:74
↓ 4 callersMethodDone
Done returns true whether ACS has completed its agreements and cleared its messageQue.
acs.go:155
↓ 4 callersMethodInputValue
InputValue sets the input value for broadcast and returns an initial set of Broadcast and ACS Messages to be broadcasted in the network.
acs.go:106
↓ 4 callersFunctionNewAgreementMessage
NewAgreementMessage constructs a new AgreementMessage.
bba.go:19
↓ 4 callersFunctionNewHoneyBadger
NewHoneyBadger returns a new HoneyBadger instance.
honey_badger.go:57
↓ 4 callersFunctionbenchmark
(n, txsize, batchSize int)
bench/main.go:25
↓ 4 callersFunctionconnectTransports
(tt []Transport)
rbc_test.go:237
↓ 4 callersMethodhandleAuxRequest
(senderID uint64, val bool)
bba.go:267
↓ 4 callersMethodhandleBvalRequest
handleBvalRequest processes the received binary value and fills up the message que if there are any messages that need to be broadcasted.
bba.go:238
↓ 4 callersFunctionnewBuffer
newBuffer return a new initialized buffer with the max data cap set to 1024.
buffer.go:17
↓ 4 callersMethodpush
push pushes v to the buffer.
buffer.go:24
↓ 4 callersFunctiontestAgreement
(t *testing.T, inputs []bool, expect bool)
bba_test.go:110
↓ 3 callersMethodAcceptInput
AcceptInput returns true whether this bba instance is elligable for accepting a new input value.
bba.go:138
↓ 3 callersMethodMessages
Messages returns the que of messages. The message que get's filled after processing a protocol message. After calling this method the que will be empt
rbc.go:207
↓ 3 callersFunctionexcludeID
(ids []uint64, id uint64)
bba_test.go:168
↓ 3 callersMethodmakeRPC
(id, addr uint64, msg interface{})
local_transport.go:71
↓ 3 callersFunctionmakeShards
makeShards will split the given value into equal sized shards along with somen additional parity shards.
rbc.go:404
↓ 3 callersMethodprocessAgreement
(pid uint64, fun func(bba *BBA) error)
acs.go:253
↓ 3 callersMethodrun
run makes sure we only process 1 message at the same time, avoiding mutexes and race conditions.
bba.go:180
↓ 3 callersMethodstop
()
bba.go:174
↓ 3 callersFunctionvalidateProof
validateProof will validate the given ProofRequest and hence return true or false accordingly.
rbc.go:393
↓ 2 callersMethodAddr
Addr returns the address of the transport. We address transport by the id of the node.
transport.go:32
↓ 2 callersMethodConnect
Connect is used to connect this tranport to another transport.
transport.go:28
↓ 2 callersMethodEncode
(w io.Writer)
buffer_test.go:81
↓ 2 callersMethodHandleMessage
HandleMessage handles incoming messages to ACS and redirects them to the appropriate sub(protocol) instance.
acs.go:118
↓ 2 callersMethodOutput
Output will return the output of the rbc instance. If the output was not nil then it will return the output else nil. Note that after consuming the ou
rbc.go:216
↓ 2 callersMethodOutputs
Outputs returns the commited transactions per epoch.
honey_badger.go:114
↓ 2 callersMethodSendMessage
(from, to uint64, msg interface{})
transport.go:25
↓ 2 callersMethodStart
Start attempt to start the consensus engine. TODO(@anthdm): Reconsider API change.
honey_badger.go:104
↓ 2 callersMethodValue
()
buffer_test.go:92
↓ 2 callersMethodaddMessages
(msgs []MessageTuple)
honey_badger.go:227
↓ 2 callersMethodaddTransactions
(txx ...*Transaction)
simulation/main.go:107
↓ 2 callersMethodadvanceEpoch
advanceEpoch will reset all the values that are bound to an epoch and increments the epoch value by 1.
bba.go:335
↓ 2 callersMethodcountEchos
countEchos count the number of echos with the given hash.
rbc.go:326
↓ 2 callersMethodcountReadys
countReadys count the number of readys with the given hash.
rbc.go:337
↓ 2 callersMethodcountTruthyAgreements
countTruthyAgreements returns the number of truthy received agreement messages.
acs.go:327
↓ 2 callersMethoddelete
@optimize: This can be much more efficient. delete removes the given slice of Transactions from the buffer.
buffer.go:32
↓ 2 callersMethodhandleEchoRequest
Every node that has received (N - f) echo's with the same root hash from distinct nodes knows that at least (f + 1) "good" nodes have sent an echo wit
rbc.go:253
↓ 2 callersMethodhandleMessage
handleMessage will process the given rpc message. The caller is resposible to make sure only RPC messages are passed that are elligible for the BBA pr
bba.go:208
↓ 2 callersMethodhandleProofRequest
When a node receives a Proof from a proposer it broadcasts the proof as an EchoRequest to the network after validating its content.
rbc.go:227
↓ 2 callersMethodhandleReadyRequest
If a node had received (2 * f + 1) ready's (with matching root hash) from distinct nodes, it knows that at least (f + 1) good nodes have sent it. Henc
rbc.go:280
↓ 2 callersMethodinputValue
(data []byte)
rbc_test.go:208
↓ 2 callersFunctionmakeRBCNodes
(n, pid int, resCh chan bcResult)
rbc_test.go:221
↓ 2 callersFunctionmakeTransports
makeTransports is a test helper function for making n number of transports.
acs_test.go:132
↓ 2 callersFunctionmakeids
(n int)
acs_test.go:123
↓ 2 callersFunctionnewMessageQue
()
message_que.go:19
↓ 2 callersMethodpropose
propose will propose a new batch for the current epoch.
honey_badger.go:126
↓ 2 callersMethodtryDecodeValue
tryDecodeValue will check whether the Value (V) can be decoded from the received shards. If the decode was successfull output will be set the this val
rbc.go:296
↓ 2 callersFunctionuint64sWithout
(s []uint64, val uint64)
acs.go:337
↓ 2 callersMethodverifyTransaction
Simulate the delay of verifying a transaction.
simulation/main.go:102
↓ 1 callersMethodBroadcast
Broadcast implements the Transport interface.
local_transport.go:44
↓ 1 callersMethodBroadcast
Broadcast multicasts the given messages to all connected nodes.
transport.go:23
↓ 1 callersMethodDecode
(r io.Reader)
buffer_test.go:88
↓ 1 callersMethodHash
()
buffer_test.go:73
↓ 1 callersMethodInputValue
InputValue will set the given data as value V. The data will first splitted into shards and additional parity shards (used for reconstruction), the eq
rbc.go:129
↓ 1 callersMethodSendProofMessages
SendProofMessages implements the Transport interface.
local_transport.go:32
↓ 1 callersMethodSendProofMessages
SendProofMessages will equally spread the given messages under the participating nodes.
transport.go:20
↓ 1 callersMethodcommitLoop
()
simulation/main.go:137
↓ 1 callersFunctionconnectTransports
(tt []hbbft.Transport)
simulation/main.go:190
↓ 1 callersMethodcountBvals
countBvals counts all the received Bval inputs matching b.
bba.go:360
↓ 1 callersMethodcountOutputs
countOutputs returns the number of received (aux) messages, the corresponding values that where also in our inputs.
bba.go:345
↓ 1 callersMethodgetOrNewACSInstance
(epoch uint64)
honey_badger.go:201
↓ 1 callersMethodhandleAgreement
handleAgreement processes the received AgreementMessage from sender (sid) for a value proposed by the proposing node (pid).
acs.go:217
↓ 1 callersMethodhandleBroadcast
handleBroadcast processes the received BroadcastMessage.
acs.go:224
↓ 1 callersMethodhandleMessage
(senderID uint64, msg *BroadcastMessage)
rbc.go:191
↓ 1 callersMethodhandleMessage
handleMessage handles incoming messages to ACS and redirects them to the appropriate sub(protocol) instance.
acs.go:130
↓ 1 callersMethodhasSentBval
hasSentBval return true if we already sent out the given value.
bba.go:373
↓ 1 callersMethodinputValue
inputValue will set the given val as the initial value to be proposed in the Agreement.
bba.go:195
↓ 1 callersMethodinputValue
(data []byte)
rbc.go:173
↓ 1 callersMethodinputValue
inputValue sets the input value for broadcast and returns an initial set of Broadcast and ACS Messages to be broadcasted in the network.
acs.go:167
↓ 1 callersMethodlen
()
message_que.go:47
↓ 1 callersFunctionmakeACSNetwork
(n int)
acs_test.go:114
↓ 1 callersFunctionmakeBBAInstances
(n int)
bba_test.go:178
↓ 1 callersFunctionmakeBroadcastMessages
makeProofRequests will build a merkletree out of the given shards and make equal ProofRequest to send one proof to each participant in the consensus.
rbc.go:370
↓ 1 callersFunctionmakeNetwork
(n int)
simulation/main.go:179
↓ 1 callersFunctionmakeNodes
(n, ntx, txsize, batchSize int)
bench/main.go:68
↓ 1 callersFunctionmakeProofRequests
makeProofRequests will build a merkletree out of the given shards and make equal ProofRequest to send one proof to each participant in the consensus.
rbc.go:349
↓ 1 callersFunctionmakeTransactions
(n int)
simulation/main.go:225
↓ 1 callersFunctionmakeids
(n int)
bench/main.go:85
↓ 1 callersFunctionmakeids
(n int)
simulation/main.go:201
↓ 1 callersMethodmaybeProcessOutput
()
honey_badger.go:157
↓ 1 callersFunctionnewServer
(id uint64, tr hbbft.Transport, nodes []uint64)
simulation/main.go:84
↓ 1 callersFunctionnewTestNode
(hb *HoneyBadger, tr Transport)
honey_badger_test.go:31
↓ 1 callersFunctionnewTestRBCEngine
(resCh chan bcResult, rbc *RBC, tr Transport)
rbc_test.go:172
↓ 1 callersFunctionnewTransaction
()
simulation/main.go:214
next →1–100 of 165, ranked by callers