Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FCOB ¶
type FCOB struct { Events *FCOBEvents // contains filtered or unexported fields }
FCOB defines the "Fast Consensus of Barcelona" rules that are used to form the initial opinions of nodes. It uses a local modifier based approach to reach approximate consensus within the network by waiting 1 network delay before setting a transaction to preferred (if it didnt see a conflict) and another network delay to set it to finalized (if it still didn't see a conflict).
func NewFCOB ¶
NewFCOB is the constructor for an FCOB consensus instance. It automatically attaches to the passed in Tangle and calls the corresponding Events if it needs to trigger a vote.
func (*FCOB) ProcessVoteResult ¶
func (fcob *FCOB) ProcessVoteResult(ev *vote.OpinionEvent)
ProcessVoteResult allows an external voter to hand in the results of the voting process.