Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | List of all members
avalanche::TestVoteRecord Struct Reference
Inheritance diagram for avalanche::TestVoteRecord:
[legend]
Collaboration diagram for avalanche::TestVoteRecord:
[legend]

Public Member Functions

 TestVoteRecord (uint16_t conf)
 
- Public Member Functions inherited from avalanche::VoteRecord
 VoteRecord (bool accepted)
 
 VoteRecord (const VoteRecord &other)
 Copy semantic.
 
bool isAccepted () const
 Vote accounting facilities.
 
uint16_t getConfidence () const
 
bool hasFinalized () const
 
bool isStale (uint32_t staleThreshold=AVALANCHE_VOTE_STALE_THRESHOLD, uint32_t staleFactor=AVALANCHE_VOTE_STALE_FACTOR) const
 
bool registerVote (NodeId nodeid, uint32_t error)
 Register a new vote for an item and update confidence accordingly.
 
bool registerPoll () const
 Register that a request is being made regarding that item.
 
bool shouldPoll () const
 Return if this item is in condition to be polled at the moment.
 
void clearInflightRequest (uint8_t count=1)
 Clear count inflight requests.
 

Detailed Description

Definition at line 90 of file processor_tests.cpp.

Constructor & Destructor Documentation

◆ TestVoteRecord()

avalanche::TestVoteRecord::TestVoteRecord ( uint16_t  conf)
inlineexplicit

Definition at line 91 of file processor_tests.cpp.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: