mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Dev Docs: Correct Connection Establishment Message Order
Text said: version/verack/version/verack. Correct order (per code and my own testing) is version/version/verack/verack.
This commit is contained in:
parent
ba153fc937
commit
ecd5a349aa
1 changed files with 5 additions and 1 deletions
|
@ -119,7 +119,11 @@ BitcoinJ is generated using the [makeseeds script][].
|
|||
|
||||
{% autocrossref %}
|
||||
|
||||
Connecting to a peer is done by sending a `version` message, which contains your version number, block, and current time to the remote node. Once the message is received by the remote node, it must respond with a `verack` message, which may be followed by its own `version` message if the node desires to peer.
|
||||
Connecting to a peer is done by sending a `version` message, which
|
||||
contains your version number, block, and current time to the remote
|
||||
node. The remote node responds with its own `version` message. Then both
|
||||
nodes send a `verack` message to the other node to indicate the
|
||||
connection has been established.
|
||||
|
||||
Once connected, the client can send to the remote node `getaddr` and `addr` messages to gather additional peers.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue