// Check the CHECKPOINT messages for given sequence number are enough
// including the message for the current node.
Check the CHECKPOINT messages for given sequence number are enough
including the message for the current node.
// Check the CHECKPOINT messages for given sequence number are enough // including the message for the current node .
func (node *Node) Checkpointchk(state consensus.PBFT) bool {
	node.CheckPointMutex.RLock()
	defer node.CheckPointMutex.RUnlock()
	sequenceID := state.GetSequenceID()
	if len(node.CheckPointMsgsLog[sequenceID]) >= (2*state.GetF() + 1) &&
	   node.CheckPointMsgsLog[sequenceID][node.MyInfo.NodeID] != nil {
		return true
	}
	return false
}
func ( node * Node ) Checkpointchk ( state consensus . PBFT ) bool { node . CheckPointMutex . RLock ( ) defer node . CheckPointMutex . RUnlock ( ) sequenceID := state . GetSequenceID ( ) if len ( node . CheckPointMsgsLog [ sequenceID ] ) >= ( 2 * state . GetF ( ) + 1 ) && node . CheckPointMsgsLog [ sequenceID ] [ node . MyInfo . NodeID ] != nil { return true } return false }
Check the CHECKPOINT messages for given sequence number are enough
including the message for the current node.
Check the CHECKPOINT messages for given sequence number are enough including the message for the current node .