Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decidable ¶
type Decidable interface { // ID returns a unique ID for this element. // // Typically, this is implemented by using a cryptographic hash of a // binary representation of this element. An element should return the same // IDs upon repeated calls. ID() ids.ID // Accept this element. // // This element will be accepted by every correct node in the network. Accept() error // Reject this element. // // This element will not be accepted by any correct node in the network. Reject() error // Status returns this element's current status. // // If Accept has been called on an element with this ID, Accepted should be // returned. Similarly, if Reject has been called on an element with this // ID, Rejected should be returned. If the contents of this element are // unknown, then Unknown should be returned. Otherwise, Processing should be // returned. Status() Status }
Decidable represents element that can be decided.
Decidable objects are typically thought of as either transactions, blocks, or vertices.
type Status ¶
type Status uint32
Status ...
List of possible status values Unknown Zero value, means the status is not known Processing means the operation is known, but hasn't been decided yet Rejected means the operation will never be accepted Accepted means the operation was accepted
Click to show internal directories.
Click to hide internal directories.