Skip to content

Commit 3df0ddc

Browse files
authored
Update net-design.md
1 parent adde578 commit 3df0ddc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/docs/devtools/net-design.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ message RecentBeaconBlocksRequest {
136136
}
137137
```
138138

139-
***Encoding Registration***
139+
***Encoding Registration:***
140140
In the p2p service, there will be an encoding protocol string mapping to an encoding.
141141

142142
```go
@@ -175,7 +175,7 @@ Note that p2p Sends must wait for a maximum of TTFB_TIMEOUT (time to first byte)
175175

176176
Peers are added to the peerstore from those that are discovered through our discovery protocol. Then Hello requests are sent to all peers which are in our peerstore and we wait for the corresponding hello responses from them. If the response doesn’t arrive in time(ex 5s), we disconnect from those peers. For those that respond with their own corresponding hello responses, we then validate their hello messages, if its invalid we then disconnect with them. If not we begin initial sync as described above.
177177

178-
Since sending and responding to hello requests is a core part of the initial handshake, we will have to use a connection handler, which performs this whenever we dial a peer or vice versa. This ensures that peers that connect to us and are able to propagate messages are only those that are validated according to the protocol
178+
Since sending and responding to hello requests is a core part of the initial handshake, we will have to use a connection handler, which performs this whenever we dial a peer or vice versa. This ensures that peers that connect to us and are able to propagate messages are only those that are validated according to the protocol.
179179

180180
```go
181181
func setupPeerHandShake(h host.Host, helloHandler sync.RPCHandler) {
@@ -185,7 +185,7 @@ func setupPeerHandShake(h host.Host, helloHandler sync.RPCHandler) {
185185
}
186186
```
187187
188-
The above describes how we would handle the peer connection in the callback, we would validate each newly added peer using the hello rpc handler. This ensures any application logic stays in the sync package instead of the p2p package
188+
The above describes how we would handle the peer connection in the callback, we would validate each newly added peer using the hello rpc handler. This ensures any application logic stays in the sync package instead of the p2p package.
189189
190190
**Round-Robin Batch Block Sync**
191191

0 commit comments

Comments
 (0)