1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-12-27 00:48:09 +00:00

address propagation and discovery

This commit is contained in:
Andreas M. Antonopoulos 2014-07-20 12:41:13 -05:00
parent b5a903a66a
commit 1d70dfa96b
2 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,12 @@ How does a new node find peers? While there are no special nodes in bitcoin, the
Once one or more connections is established, the new node will send an +addr+ message containing its own IP address, to its neighbors. The neighbors will in turn forward the +addr+ message to their neighbors, ensuring that the newly connected node becomes well known and better connected. Additionally, the newly connected node can send +getaddr+ to the neighbors asking them to return a list of IP addresses of other peers. That way, a node can find peers to connect to and advertise its existence on the network for other nodes to find it. On a node running the Bitcoin Core client, you can list the peer connections with the command +getpeerinfo+:
[[address_propagation]]
.Address Propagation and Discovery
image::images/AddressPropagation.png["AddressPropagation"]
----
$ bitcoin-cli getpeerinfo
[

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB