Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
class Proof; | class Proof; | ||||
struct VoteRecord; | struct VoteRecord; | ||||
enum struct VoteStatus : uint8_t { | enum struct VoteStatus : uint8_t { | ||||
Invalid, | Invalid, | ||||
Rejected, | Rejected, | ||||
Accepted, | Accepted, | ||||
Finalized, | Finalized, | ||||
Stale, | |||||
}; | }; | ||||
template <typename VoteItem> class VoteItemUpdate { | template <typename VoteItem> class VoteItemUpdate { | ||||
VoteItem item; | VoteItem item; | ||||
VoteStatus status; | VoteStatus status; | ||||
public: | public: | ||||
VoteItemUpdate(const VoteItem itemIn, VoteStatus statusIn) | VoteItemUpdate(const VoteItem itemIn, VoteStatus statusIn) | ||||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |