Documentation
¶
Index ¶
Constants ¶
View Source
const MaxFaultyNode = 1
View Source
const TotalNodeNO = 3*MaxFaultyNode + 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckPoint ¶
type ConMessage ¶
type ConMessage struct {
Typ MType `json:"type"`
Sig string `json:"sig"`
From uint `json:"from"`
To uint `json:"to"`
Payload []byte `json:"payload"`
}
func CreateConMsg ¶
func CreateConMsg(t MType, msg interface{}) *ConMessage
func (*ConMessage) String ¶
func (cm *ConMessage) String() string
func (*ConMessage) Verify ¶
func (cm *ConMessage) Verify() bool
type OMessage ¶
type OMessage map[int64]*PrePrepare
type PTuple ¶
type PTuple struct {
PPMsg *PrePrepare `json:"pre-prepare"`
PMsg PrepareMsg `json:"prepare"`
}
type PrePrepare ¶
type PrepareMsg ¶
type Request ¶
type RequestRecord ¶
type RequestRecord struct {
*PrePrepare
*Request
}
type VMessage ¶
type VMessage map[int64]*ViewChange
type ViewChange ¶
type ViewChange struct {
NewViewID int64 `json:"newViewID"`
LastCPSeq int64 `json:"lastCPSeq"`
NodeID int64 `json:"nodeID"`
CMsg map[int64]*CheckPoint `json:"cMsg"`
PMsg map[int64]*PTuple `json:"pMsg"`
}
func (*ViewChange) Digest ¶
func (vc *ViewChange) Digest() string
Click to show internal directories.
Click to hide internal directories.