PeerFinder work

This commit is contained in:
Vinnie Falco
2013-09-30 09:35:29 -07:00
parent 41879d8511
commit 4fe63f9f0d
44 changed files with 2327 additions and 489 deletions

View File

@@ -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;