Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/peermanager.h
Show All 26 Lines | |||||
#include <chrono> | #include <chrono> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <memory> | #include <memory> | ||||
#include <unordered_set> | #include <unordered_set> | ||||
#include <vector> | #include <vector> | ||||
namespace avalanche { | namespace avalanche { | ||||
/** | |||||
* Maximum number of orphan proofs the peer manager will accept from the | |||||
* network. Under good conditions, this allows the node to collect relevant | |||||
* proofs during IBD. Note that reorgs can cause the orphan pool to | |||||
* temporarily exceed this limit. But a change in chaintip cause previously | |||||
* reorged proofs to be trimmed. | |||||
*/ | |||||
static constexpr uint32_t AVALANCHE_MAX_ORPHAN_PROOFS = 4000; | |||||
class Delegation; | class Delegation; | ||||
namespace { | namespace { | ||||
struct TestPeerManager; | struct TestPeerManager; | ||||
} | } | ||||
struct Slot { | struct Slot { | ||||
private: | private: | ||||
▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines |