Skip to content

Commit 3b2eee8

Browse files
committed
debug: add networkResponse endpoint with network identity
1 parent 043cbff commit 3b2eee8

4 files changed

Lines changed: 144 additions & 26 deletions

File tree

proto/spacemesh/v1/debug.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import "google/protobuf/empty.proto";
99
// They should not be used in production.
1010
service DebugService {
1111

12+
// NetworkInfo returns p2p network information. Mostly required for integration with deployment
13+
// and testing tooling.
14+
rpc NetworkInfo(google.protobuf.Empty) returns (NetworkInfoResponse);
15+
1216
// Accounts returns data for all the accounts currently in the node's current global state.
1317
// This includes each account's address, nonce and balance but excludes projection of account state.
1418
rpc Accounts (google.protobuf.Empty) returns (AccountsResponse);

proto/spacemesh/v1/debug_types.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ import "spacemesh/v1/global_state_types.proto";
66

77
message AccountsResponse {
88
repeated Account account_wrapper = 1;
9+
}
10+
11+
message NetworkInfoResponse {
12+
string id = 1;
913
}

release/go/spacemesh/v1/debug.pb.go

Lines changed: 64 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/go/spacemesh/v1/debug_types.pb.go

Lines changed: 72 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)