Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BinaryAgreement ¶
type BinaryAgreement struct { Lock sync.Mutex In chan bool Out chan bool // contains filtered or unexported fields }
func NewBinaryAgreement ¶
func NewBinaryAgreement(instanceIndex int, total, tolerance int, inchannel chan *ab.HoneyBadgerBFTMessage, broadcastFunc func(msg ab.HoneyBadgerBFTMessage)) *BinaryAgreement
type ChainImpl ¶
type ChainImpl struct { Total int Tolerance int Index int // contains filtered or unexported fields }
type CommonSubset ¶
type CommonSubset struct { In chan []byte Out chan [][]byte // contains filtered or unexported fields }
func NewCommonSubset ¶
func NewCommonSubset(ordererIndex int, total int, tolerance int, rbc []*ReliableBroadcast, aba []*BinaryAgreement) (result *CommonSubset)
type HoneyBadgerBlock ¶
type HoneyBadgerBlock struct { In chan []*cb.Envelope Out chan []*cb.Envelope // contains filtered or unexported fields }
func NewHoneyBadgerBlock ¶
func NewHoneyBadgerBlock(total int, maxMalicious int, acs *CommonSubset) (result *HoneyBadgerBlock)
func NewHoneyBadgerBlock(total int, maxMalicious int, broadcastFunc func(msg ab.HoneyBadgerBFTMessage), acs *CommonSubset) (result *HoneyBadgerBlock) {
type MessageChannels ¶
type MessageChannels struct { Send chan ab.HoneyBadgerBFTMessage Receive chan *ab.HoneyBadgerBFTMessage }
type ReliableBroadcast ¶
type ReliableBroadcast struct { In chan []byte Out chan []byte // contains filtered or unexported fields }
func NewReliableBroadcast ¶
func NewReliableBroadcast(instanceIndex int, total int, tolerance int, ordererIndex int, leaderIndex int, receiveMessageChannel chan *ab.HoneyBadgerBFTMessage, sendFunc func(index int, msg ab.HoneyBadgerBFTMessage), broadcastFunc func(msg ab.HoneyBadgerBFTMessage)) (result *ReliableBroadcast)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.