From e549ed36e8bbb0d15b1bd245cc5bb2c5664d5aa2 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Mon, 7 Dec 2020 15:57:33 +0100 Subject: BIP155: change when sendaddrv2 is to be sent Mandate to send `sendaddrv2` to the peer before sending our `verack` to them. This way we know that the peer does not support `addrv2` if we did not receive `sendaddrv2` from them before receiving their `verack`. --- bip-0155.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bip-0155.mediawiki') diff --git a/bip-0155.mediawiki b/bip-0155.mediawiki index 71fe3cc..ab3c0fc 100644 --- a/bip-0155.mediawiki +++ b/bip-0155.mediawiki @@ -134,7 +134,7 @@ See the appendices for the address encodings to be used for the various networks Introduce a new message type sendaddrv2. Sending such a message indicates that a node can understand and prefers to receive addrv2 messages instead of addr messages. I.e. "Send me addrv2". -sendaddrv2 SHOULD be sent after receiving the verack message from the peer. +The sendaddrv2 message MUST only be sent in response to the version message from a peer and prior to sending the verack message. For older peers, that did not emit sendaddrv2, keep sending the legacy addr message, ignoring addresses with the newly introduced address types. -- cgit v1.2.3