Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
* How many inflight requests can exist for one item. | * How many inflight requests can exist for one item. | ||||
*/ | */ | ||||
static const int AVALANCHE_MAX_INFLIGHT_POLL = 10; | static const int AVALANCHE_MAX_INFLIGHT_POLL = 10; | ||||
/** | /** | ||||
* Special NodeId that represent no node. | * Special NodeId that represent no node. | ||||
*/ | */ | ||||
static const NodeId NO_NODE = -1; | static const NodeId NO_NODE = -1; | ||||
} | } // namespace | ||||
/** | /** | ||||
* Vote history. | * Vote history. | ||||
*/ | */ | ||||
struct VoteRecord { | struct VoteRecord { | ||||
private: | private: | ||||
// confidence's LSB bit is the result. Higher bits are actual confidence | // confidence's LSB bit is the result. Higher bits are actual confidence | ||||
// score. | // score. | ||||
▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines |