Skip to content

Commit

Permalink
Merge pull request #87 from AElfProject/feat/review-2
Browse files Browse the repository at this point in the history
Fix: color codes in learn/netwrok section
  • Loading branch information
AelfHongliang authored Jun 28, 2024
2 parents bc2a341 + 90df7ac commit cadf344
Showing 1 changed file with 12 additions and 12 deletions.
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) {}
```

0 comments on commit cadf344

Please sign in to comment.