mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-02-12 23:52:44 +00:00
Made changes to ch06.asciidoc
This commit is contained in:
parent
bd9d5ee7c7
commit
0639ab01f8
@ -51,7 +51,7 @@ When a new node boots up, it must discover other bitcoin nodes on the network in
|
|||||||
|
|
||||||
To connect to a known peer, nodes establish a TCP connection, usually to port 8333 (the bitcoin "well known" port), or an alternative port if one is provided. Upon establishing a connection, the node will start a "handshake" (see <<network_handshake>>) by transmitting a +version+ message, which contains basic identifying information, including:
|
To connect to a known peer, nodes establish a TCP connection, usually to port 8333 (the bitcoin "well known" port), or an alternative port if one is provided. Upon establishing a connection, the node will start a "handshake" (see <<network_handshake>>) by transmitting a +version+ message, which contains basic identifying information, including:
|
||||||
|
|
||||||
* PROTOCOL_VERSION, a constant that defines the bitcoin P2P protocol version the client "speaks" (e.g., 70002)
|
* +PROTOCOL_VERSION+, a constant that defines the bitcoin P2P protocol version the client "speaks" (e.g., 70002)
|
||||||
* +nLocalServices+, a list of local services supported by the node, currently just +NODE_NETWORK+
|
* +nLocalServices+, a list of local services supported by the node, currently just +NODE_NETWORK+
|
||||||
* +nTime+, the current time
|
* +nTime+, the current time
|
||||||
* +addrYou+, the IP address of the remote node as seen from this node
|
* +addrYou+, the IP address of the remote node as seen from this node
|
||||||
|
Loading…
Reference in New Issue
Block a user