Files

17 lines
969 B
Markdown
Raw Permalink Normal View History

2020-02-06 12:37:37 -05:00
<div class="cwikmeta">{
"title":"ADDR",
2020-02-06 18:24:36 -05:00
"related":["/protocol","/protocol/network/messages/getaddr"]
2020-02-06 12:37:37 -05:00
}</div>
# Response: Addresses ("addr")
2020-02-06 18:24:36 -05:00
Provide information about other prospective P2P protocol peers. Peers SHOULD not send this message unsolicited (see [`getaddr`](/protocol/network/messages/getaddr)), and nodes that receive an unsolicited `addr` message MUST ignore it. This behavior helps prevent eclipse and partitioning attacks by not allowing an attacker to aggressively seed peer connection tables with its own nodes.
2020-02-06 12:37:37 -05:00
2020-02-06 18:24:36 -05:00
## Message Format
| Field | Length | Format | Description |
|--|--|--|--|
| peer count | variable | [variable length integer](/protocol/formats/variable-length-integer) | The number of peers whose connection information is being sent in this message. |
| peer network addresses | `peer_count` * 30 | `peer_count` [network addresses](/protocol/formats/network-address) | The peer information for each of the peers being transmitted. |
2020-02-06 18:24:36 -05:00