CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace ionet {
class NodeContainer; } }
28 namespace catapult {
namespace nodediscovery {
model::NetworkIdentifier m_networkIdentifier
Definition: PeersProcessor.h:56
NodeContainerView view() const
Gets a read only view of the nodes.
Definition: NodeContainer.cpp:249
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
def debug(*args)
Definition: Parser.py:46
const Key & identityKey() const
Gets the unique identifier (a public key).
Definition: Node.cpp:60
def warning(*args)
Definition: colorPrint.py:10
bool IsNodeCompatible(const ionet::Node &node, model::NetworkIdentifier networkIdentifier, const Key &identityKey)
Determines if node is compatible with expected network (networkIdentifier) and identity (identityKey)...
Definition: NodePingUtils.cpp:52
NodePingRequestInitiator m_pingRequestInitiator
Definition: PeersProcessor.h:55
consumer< const ionet::Node & > NodeConsumer
Definition: PeersProcessor.h:33
void process(const ionet::NodeSet &candidateNodes) const
Processes all candidate nodes (candidateNodes) and forwards newly discovered partner nodes.
Definition: PeersProcessor.cpp:38
consumer< const ionet::Node &, const consumer< net::NodeRequestResult, const ionet::Node & > & > NodePingRequestInitiator
Definition: PeersProcessor.h:34
Processes peers received from a partner node.
Definition: PeersProcessor.h:31
A collection of nodes.
Definition: NodeContainer.h:109
const ionet::NodeContainer & m_nodeContainer
Definition: PeersProcessor.h:54
std::unordered_set< Node, NodeHasher > NodeSet
A set of nodes.
Definition: Node.h:128
def info(*args)
Definition: forwardsValidation.py:12
NodeConsumer m_newPartnerNodeConsumer
Definition: PeersProcessor.h:57
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
NetworkIdentifier m_networkIdentifier
Definition: TransactionUtils.cpp:59
const NodeEndpoint & endpoint() const
Gets the endpoint.
Definition: Node.cpp:64
Definition: AddressExtractionExtension.cpp:28
A node in the catapult network.
Definition: Node.h:82
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35
PeersProcessor(const ionet::NodeContainer &nodeContainer, const NodePingRequestInitiator &pingRequestInitiator, model::NetworkIdentifier networkIdentifier, const NodeConsumer &newPartnerNodeConsumer)
Definition: PeersProcessor.cpp:27
ionet::NodeSet SelectUnknownNodes(const ionet::NodeContainerView &view, const ionet::NodeSet &nodes)
Filters nodes by returning all nodes not contained in view.
Definition: NodePingUtils.cpp:56