mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
maintain db of peers
This commit is contained in:
@@ -9,6 +9,8 @@ enum MessageType {
|
||||
// network presence detection
|
||||
mtGET_CONTACTS= 10;
|
||||
mtCONTACT= 11;
|
||||
mtGET_PEERS= 12;
|
||||
mtPEERS= 13;
|
||||
|
||||
// operations for 'small' nodes
|
||||
mtSEARCH_TRANSACTION= 20;
|
||||
@@ -150,6 +152,19 @@ message TMGetContacts {
|
||||
optional uint32 nodeCount =2; // get some random nodes
|
||||
}
|
||||
|
||||
message TMGetPeers {
|
||||
required uint32 doWeNeedThis =1; // yes since you are asserting that the packet size isn't 0 in PackedMessage
|
||||
}
|
||||
|
||||
message TMIPv4EndPoint {
|
||||
required uint32 ipv4 = 1;
|
||||
required uint32 ipv4Port = 2;
|
||||
}
|
||||
|
||||
message TMPeers {
|
||||
repeated TMIPv4EndPoint nodes =1;
|
||||
}
|
||||
|
||||
|
||||
message TMSearchTransaction {
|
||||
required uint32 maxTrans =1;
|
||||
|
||||
Reference in New Issue
Block a user