mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
PeerFinder work
This commit is contained in:
@@ -14,6 +14,7 @@ enum MessageType
|
||||
mtCONTACT = 11;
|
||||
mtGET_PEERS = 12;
|
||||
mtPEERS = 13;
|
||||
mtENDPOINTS = 14;
|
||||
|
||||
// operations for 'small' nodes
|
||||
mtSEARCH_TRANSACTION = 20;
|
||||
@@ -231,6 +232,23 @@ message TMPeers
|
||||
repeated TMIPv4EndPoint nodes = 1;
|
||||
}
|
||||
|
||||
// An Endpoint describes a network peer that can accept incoming connections
|
||||
message TMEndpoint
|
||||
{
|
||||
required TMIPv4EndPoint ipv4 = 1;
|
||||
required uint32 hops = 2;
|
||||
required uint32 slots = 3; // the number of available incoming slots
|
||||
required uint32 maxSlots = 4; // the maximum number of incoming slots
|
||||
required uint32 uptimeMinutes = 5; // uptime in minutes
|
||||
required string features = 6;
|
||||
}
|
||||
|
||||
// An array of Endpoint messages
|
||||
message TMEndpoints
|
||||
{
|
||||
repeated TMEndpoint endpoints = 1;
|
||||
};
|
||||
|
||||
message TMSearchTransaction
|
||||
{
|
||||
required uint32 maxTrans = 1;
|
||||
|
||||
Reference in New Issue
Block a user