From 7cad1de8bda83eae59af03615f24e2c628c103d0 Mon Sep 17 00:00:00 2001 From: vasmohi Date: Fri, 28 Jun 2024 16:13:08 +0530 Subject: [PATCH 1/2] fix: color codes in learn/netwrok section --- docs/learn/network/index.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/learn/network/index.md b/docs/learn/network/index.md index 3ae876d..f0a7c44 100644 --- a/docs/learn/network/index.md +++ b/docs/learn/network/index.md @@ -66,11 +66,11 @@ 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 + ```cs message Handshake { HandshakeData handshake_data = 1; bytes signature = 2; @@ -78,7 +78,7 @@ When a node connects, it exchanges handshake information. This includes chain st } ``` - **HandshakeData Message**: - ```proto + ```cs message HandshakeData { int32 chain_id = 1; int32 version = 2; @@ -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 + ```cs rpc ConfirmHandshake (ConfirmHandshakeRequest) returns (VoidReply) {} ``` @@ -104,28 +104,28 @@ Confirms the handshake with the target node. #### BlockBroadcastStream Receives block information after packaging. - **Request**: - ```proto + ```cs rpc BlockBroadcastStream (stream BlockWithTransactions) returns (VoidReply) {} ``` #### TransactionBroadcastStream Receives forwarded transaction information. - **Request**: - ```proto + ```cs rpc TransactionBroadcastStream (stream aelf.Transaction) returns (VoidReply) {} ``` #### AnnouncementBroadcastStream Receives block announcements. - **Request**: - ```proto + ```cs rpc AnnouncementBroadcastStream (stream BlockAnnouncement) returns (VoidReply) {} ``` #### LibAnnouncementBroadcastStream Receives last irreversible block (LIB) announcements. - **Request**: - ```proto + ```cs rpc LibAnnouncementBroadcastStream (stream LibAnnouncement) returns (VoidReply) {} ``` @@ -134,14 +134,14 @@ Receives last irreversible block (LIB) announcements. #### RequestBlock Requests a single block. - **Request**: - ```proto + ```cs rpc RequestBlock (BlockRequest) returns (BlockReply) {} ``` #### RequestBlocks Requests multiple blocks. - **Request**: - ```proto + ```cs rpc RequestBlocks (BlocksRequest) returns (BlockList) {} ``` @@ -150,13 +150,13 @@ Requests multiple blocks. #### Ping Verifies network availability. - **Request**: - ```proto + ```cs rpc Ping (PingRequest) returns (PongReply) {} ``` #### CheckHealth Performs health checks on peers. - **Request**: - ```proto + ```cs rpc CheckHealth (HealthCheckRequest) returns (HealthCheckReply) {} ``` \ No newline at end of file From 90df7ac96e4b7bb022a6432ef56cb8f8df6eb62a Mon Sep 17 00:00:00 2001 From: Rutvik Date: Fri, 28 Jun 2024 16:49:44 +0530 Subject: [PATCH 2/2] Workedon color styling for code example --- docs/learn/network/index.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/learn/network/index.md b/docs/learn/network/index.md index f0a7c44..a979771 100644 --- a/docs/learn/network/index.md +++ b/docs/learn/network/index.md @@ -70,7 +70,7 @@ When a node connects, it exchanges handshake information. This includes chain st rpc DoHandshake (HandshakeRequest) returns (HandshakeReply) {} ``` - **Handshake Message**: - ```cs + ```protobuf message Handshake { HandshakeData handshake_data = 1; bytes signature = 2; @@ -78,7 +78,7 @@ When a node connects, it exchanges handshake information. This includes chain st } ``` - **HandshakeData Message**: - ```cs + ```protobuf message HandshakeData { int32 chain_id = 1; int32 version = 2; @@ -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**: - ```cs + ```protobuf rpc ConfirmHandshake (ConfirmHandshakeRequest) returns (VoidReply) {} ``` @@ -104,28 +104,28 @@ Confirms the handshake with the target node. #### BlockBroadcastStream Receives block information after packaging. - **Request**: - ```cs + ```protobuf rpc BlockBroadcastStream (stream BlockWithTransactions) returns (VoidReply) {} ``` #### TransactionBroadcastStream Receives forwarded transaction information. - **Request**: - ```cs + ```protobuf rpc TransactionBroadcastStream (stream aelf.Transaction) returns (VoidReply) {} ``` #### AnnouncementBroadcastStream Receives block announcements. - **Request**: - ```cs + ```protobuf rpc AnnouncementBroadcastStream (stream BlockAnnouncement) returns (VoidReply) {} ``` #### LibAnnouncementBroadcastStream Receives last irreversible block (LIB) announcements. - **Request**: - ```cs + ```protobuf rpc LibAnnouncementBroadcastStream (stream LibAnnouncement) returns (VoidReply) {} ``` @@ -134,14 +134,14 @@ Receives last irreversible block (LIB) announcements. #### RequestBlock Requests a single block. - **Request**: - ```cs + ```protobuf rpc RequestBlock (BlockRequest) returns (BlockReply) {} ``` #### RequestBlocks Requests multiple blocks. - **Request**: - ```cs + ```protobuf rpc RequestBlocks (BlocksRequest) returns (BlockList) {} ``` @@ -150,13 +150,13 @@ Requests multiple blocks. #### Ping Verifies network availability. - **Request**: - ```cs + ```protobuf rpc Ping (PingRequest) returns (PongReply) {} ``` #### CheckHealth Performs health checks on peers. - **Request**: - ```cs + ```protobuf rpc CheckHealth (HealthCheckRequest) returns (HealthCheckReply) {} ``` \ No newline at end of file