Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlOfNode ¶
type ControlOfNode struct {
// contains filtered or unexported fields
}
ControlOfNode Use the node state to control the frequency of proposal sending
func NewControlOfNode ¶
func NewControlOfNode(period int64) *ControlOfNode
NewControlOfNode init peerStatus
func (*ControlOfNode) IsSendTime ¶
func (ps *ControlOfNode) IsSendTime(proposal *maxbft.ProposalData) bool
IsSendTime Use Fibonacci to control the interval between send of the proposal. If the proposal is in the new state, it is immediately sent to the peer, otherwise control time interval when send proposal by Fibonacci.
type NodeStatusCollector ¶
type NodeStatusCollector struct { Remotes []*maxbft.NodeStatus // contains filtered or unexported fields }
NodeStatusCollector 节点状态收集器
func NewNodeStatusCollector ¶
func NewNodeStatusCollector(localHeight uint64, requireMinNode uint, remotes []*maxbft.NodeStatus) *NodeStatusCollector
NewNodeStatusCollector 创建节点状态收集器 local不允许为nil
func (*NodeStatusCollector) LoadConsensusEpochFromPeers ¶
func (c *NodeStatusCollector) LoadConsensusEpochFromPeers() uint64
LoadConsensusEpochFromPeers 计算远端f+1个节点状态的共同Epoch状态
func (*NodeStatusCollector) LoadMinView ¶
func (c *NodeStatusCollector) LoadMinView() *maxbft.NodeStatus
LoadMinView 返回远端f+1个节点在本地高度节点generic 高度下的最小的视图编号
Click to show internal directories.
Click to hide internal directories.