diff --git a/ch06.asciidoc b/ch06.asciidoc index 47d8e526..ebd1b0ec 100644 --- a/ch06.asciidoc +++ b/ch06.asciidoc @@ -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 [ diff --git a/images/AddressPropagation.png b/images/AddressPropagation.png new file mode 100644 index 00000000..05848dda Binary files /dev/null and b/images/AddressPropagation.png differ