Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCandidate ¶ added in v0.3.0
ValidateCandidate makes sure the hash and root are 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.