CatapultServer  v0.5.0.1 (Elephant)
NodeSelector.cpp File Reference
Include dependency graph for NodeSelector.cpp:

Namespaces

 catapult
 
 catapult::extensions
 

Functions

uint32_t catapult::extensions::CalculateWeight (const ionet::NodeInteractions &interactions, WeightPolicy weightPolicy, const supplier< ImportanceDescriptor > &importanceSupplier)
 Calculates the weight from interactions or importanceSupplier depending on weightPolicy. More...
 
ionet::NodeSet catapult::extensions::SelectCandidatesBasedOnWeight (const WeightedCandidates &candidates, uint64_t totalCandidateWeight, size_t maxCandidates)
 
NodeSelectionResult catapult::extensions::SelectNodes (const ionet::NodeContainer &nodes, const NodeSelectionConfiguration &config, const ImportanceRetriever &importanceRetriever)
 
utils::KeySet catapult::extensions::SelectNodesForRemoval (const ionet::NodeContainer &nodes, const NodeAgingConfiguration &config, const ImportanceRetriever &importanceRetriever)
 

Variable Documentation

◆ Actives

NodeScorePairs Actives

◆ Candidates

WeightedCandidates Candidates

◆ TotalCandidateWeight

uint64_t TotalCandidateWeight = 0