Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanityCheckCandidate ¶ added in v0.6.0
SanityCheckCandidate makes sure the hash is correct, to avoid malicious nodes from overwriting the candidate block for a specific hash.
Types ¶
type Requestor ¶ added in v0.4.0
type Requestor struct {
// contains filtered or unexported fields
}
Requestor serves to retrieve certain Candidate messages from peers in the network.
func NewRequestor ¶ added in v0.4.0
NewRequestor returns an initialized Requestor struct.
func (*Requestor) ProcessCandidate ¶ added in v0.4.0
ProcessCandidate will process a received Candidate message. Invalid and non-matching Candidate messages are discarded.
Click to show internal directories.
Click to hide internal directories.