mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-30 18:56:41 +00:00

* [NOD-1151] Added gRPC server for seeding peers * [NOD-1151] Fix branch after rebase * [NOD-1151] Lint infrastructure/config/config.go * [NOD-1151] Use Warnf instead of Infof * [NOD-1151] Check if a.cfg.GRPCSeed is defined * [NOD-1151] Delete Makefile - Use go generate instead of Makefile * [NOD-1151] Panic in case of GRPCSeed and DNSSeed are both defined * [NOD-1151] Add generate.go file * [NOD-1151] Allow dnsseed and grpcseed to work together Co-authored-by: Bogdan Ovsiannikov <takahawkkun@gmail.com> Co-authored-by: yaroslavr-itd <yaroslav.r@it-dimension.com> Co-authored-by: Ori Newman <orinewman1@gmail.com>
24 lines
466 B
Protocol Buffer
24 lines
466 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "github.com/kaspanet/kaspad/pb";
|
|
|
|
service PeerService {
|
|
rpc GetPeersList(GetPeersListRequest) returns (GetPeersListResponse) {}
|
|
}
|
|
|
|
message GetPeersListRequest {
|
|
uint64 serviceFlag = 1;
|
|
bytes subnetworkID = 2;
|
|
bool includeAllSubnetworks = 3;
|
|
}
|
|
|
|
message GetPeersListResponse {
|
|
repeated NetAddress addresses = 1;
|
|
}
|
|
|
|
message NetAddress {
|
|
int64 timestamp = 1;
|
|
uint64 services = 2;
|
|
bytes IP = 3;
|
|
uint32 port = 4;
|
|
} |