Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Classes | Namespaces | Variables
voterecord.h File Reference
#include <nodeid.h>
#include <array>
#include <atomic>
#include <cstdint>
Include dependency graph for voterecord.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  avalanche::VoteRecord
 Vote history. More...
 

Namespaces

namespace  avalanche
 

Variables

static constexpr int AVALANCHE_FINALIZATION_SCORE = 128
 Finalization score.
 
static constexpr uint32_t AVALANCHE_VOTE_STALE_THRESHOLD = 4096
 Number of votes before a record may be considered as stale.
 
static constexpr uint32_t AVALANCHE_VOTE_STALE_MIN_THRESHOLD = 140
 Lowest configurable staleness threshold (finalization score + necessary votes to increase confidence + wiggle room).
 
static constexpr uint32_t AVALANCHE_VOTE_STALE_FACTOR = 64
 Scaling factor applied to confidence to determine staleness threshold.
 
static constexpr int AVALANCHE_MAX_INFLIGHT_POLL = 10
 How many inflight requests can exist for one item.
 

Variable Documentation

◆ AVALANCHE_FINALIZATION_SCORE

constexpr int AVALANCHE_FINALIZATION_SCORE = 128
staticconstexpr

Finalization score.

Definition at line 17 of file voterecord.h.

◆ AVALANCHE_MAX_INFLIGHT_POLL

constexpr int AVALANCHE_MAX_INFLIGHT_POLL = 10
staticconstexpr

How many inflight requests can exist for one item.

Definition at line 40 of file voterecord.h.

◆ AVALANCHE_VOTE_STALE_FACTOR

constexpr uint32_t AVALANCHE_VOTE_STALE_FACTOR = 64
staticconstexpr

Scaling factor applied to confidence to determine staleness threshold.

As confidence increases, the staleness threshold should as well. This ensures that slowly increasing confidence is not marked stale.

Definition at line 35 of file voterecord.h.

◆ AVALANCHE_VOTE_STALE_MIN_THRESHOLD

constexpr uint32_t AVALANCHE_VOTE_STALE_MIN_THRESHOLD = 140
staticconstexpr

Lowest configurable staleness threshold (finalization score + necessary votes to increase confidence + wiggle room).

Definition at line 28 of file voterecord.h.

◆ AVALANCHE_VOTE_STALE_THRESHOLD

constexpr uint32_t AVALANCHE_VOTE_STALE_THRESHOLD = 4096
staticconstexpr

Number of votes before a record may be considered as stale.

Definition at line 22 of file voterecord.h.