Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

production #88

Merged
merged 3 commits into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs/learn/network/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ Nodes use a defined network interface protocol for normal operation and data syn
When a node connects, it exchanges handshake information. This includes chain status, current height, and more.

- **Request**:
```proto
```cs
rpc DoHandshake (HandshakeRequest) returns (HandshakeReply) {}
```
- **Handshake Message**:
```proto
```protobuf
message Handshake {
HandshakeData handshake_data = 1;
bytes signature = 2;
bytes session_id = 3;
}
```
- **HandshakeData Message**:
```proto
```protobuf
message HandshakeData {
int32 chain_id = 1;
int32 version = 2;
Expand All @@ -95,7 +95,7 @@ When a node connects, it exchanges handshake information. This includes chain st
#### ConfirmHandshake
Confirms the handshake with the target node.
- **Request**:
```proto
```protobuf
rpc ConfirmHandshake (ConfirmHandshakeRequest) returns (VoidReply) {}
```

Expand All @@ -104,28 +104,28 @@ Confirms the handshake with the target node.
#### BlockBroadcastStream
Receives block information after packaging.
- **Request**:
```proto
```protobuf
rpc BlockBroadcastStream (stream BlockWithTransactions) returns (VoidReply) {}
```

#### TransactionBroadcastStream
Receives forwarded transaction information.
- **Request**:
```proto
```protobuf
rpc TransactionBroadcastStream (stream aelf.Transaction) returns (VoidReply) {}
```

#### AnnouncementBroadcastStream
Receives block announcements.
- **Request**:
```proto
```protobuf
rpc AnnouncementBroadcastStream (stream BlockAnnouncement) returns (VoidReply) {}
```

#### LibAnnouncementBroadcastStream
Receives last irreversible block (LIB) announcements.
- **Request**:
```proto
```protobuf
rpc LibAnnouncementBroadcastStream (stream LibAnnouncement) returns (VoidReply) {}
```

Expand All @@ -134,14 +134,14 @@ Receives last irreversible block (LIB) announcements.
#### RequestBlock
Requests a single block.
- **Request**:
```proto
```protobuf
rpc RequestBlock (BlockRequest) returns (BlockReply) {}
```

#### RequestBlocks
Requests multiple blocks.
- **Request**:
```proto
```protobuf
rpc RequestBlocks (BlocksRequest) returns (BlockList) {}
```

Expand All @@ -150,13 +150,13 @@ Requests multiple blocks.
#### Ping
Verifies network availability.
- **Request**:
```proto
```protobuf
rpc Ping (PingRequest) returns (PongReply) {}
```

#### CheckHealth
Performs health checks on peers.
- **Request**:
```proto
```protobuf
rpc CheckHealth (HealthCheckRequest) returns (HealthCheckReply) {}
```
Loading