Documentation ¶
Index ¶
Constants ¶
View Source
const COMMITTABLE_UNDECIDED = -1
View Source
const ROUND_UNDECIDED = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusOutput ¶
type ConsensusOutput struct { Tx []string // contains filtered or unexported fields }
type ConsensusOutput string
type EventBody ¶
type EventBody struct { H uint64 //Block Height M uint //MemberID N uint64 //Sequence Number, M和N唯一决定一个Event T int64 //Timestamps, 用unixNano时间, 一秒等于10的9次方nano,只能表示到1678-2262年 Tx []string //Transactions List E []string //Parents Events, 0 for self parent F []string //Fork Events, as Invalid // contains filtered or unexported fields }
type SyncRequest ¶
type SyncRequest struct {
// contains filtered or unexported fields
}
type Tetris ¶
type Tetris struct { EventCh chan Event ParentEventCh chan Event TxsCh chan string OutputCh chan ConsensusOutput SendEventCh chan Event RequestEventCh chan string // contains filtered or unexported fields }
func (*Tetris) MajorityBeatTime ¶
func (*Tetris) MemberRotate ¶
Click to show internal directories.
Click to hide internal directories.