Skip to content

Commit d84157a

Browse files
committed
Level comments.
1 parent d17b1a2 commit d84157a

File tree

1 file changed

+15
-11
lines changed
  • include/bitcoin/network/messages/enums

1 file changed

+15
-11
lines changed

include/bitcoin/network/messages/enums/level.hpp

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,20 @@ namespace messages {
2828
// Minimum current libbitcoin protocol version: 31402
2929
// Minimum current satoshi protocol version: 31800
3030

31+
// * sendaddrv2 is unverioned in BIP155 but requires version 70016 in Sataoshi:
32+
// "BIP155 defines addrv2 and sendaddrv2 for all protocol versions, but some
33+
// implementations reject messages they don't know. As a courtesy, don't send
34+
// it to nodes with a version before 70016, as no software is known to support
35+
// BIP155 that doesn't announce at least that protocol version number."
36+
// ** TODO: these should be based solely on NODE_COMPACT_FILTERS signal, but we
37+
// may associate protocol version at which it was deployed.
38+
3139
// libbitcoin-network
3240
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3341
// version v1
3442
// verack v1
3543
// getaddr v1
44+
// sendaddrv2 v4 70016 BIP155 expanded address types (*)
3645
// addr v1
3746
// ping v1
3847
// ping v2 60001 BIP031 added nonce field
@@ -72,17 +81,12 @@ namespace messages {
7281
// cmpctblock v4 70014 BIP152
7382
// getblocktxn v4 70014 BIP152
7483
// sendcmpct v4 70014 BIP152
75-
76-
// TODO: these should be based solely on NODE_COMPACT_FILTERS signal.
77-
// TODO: but we may associate protocol version at which it was deployed.
78-
// cfilter v4 70015 BIP157 not BIP-associated to p2p version
79-
// getcfilters v4 70015 BIP157 not BIP-associated to p2p version
80-
// cfcheckpt v4 70015 BIP157 not BIP-associated to p2p version
81-
// getcfcheckpt v4 70015 BIP157 not BIP-associated to p2p version
82-
// cfheaders v4 70015 BIP157 not BIP-associated to p2p version
83-
// getcfheaders v4 70015 BIP157 not BIP-associated to p2p version
84-
85-
// sendaddrv2 -- 00000 BIP155 compat break, unversioned, handshake
84+
// cfilter v4 70015 BIP157 not BIP-associated to p2p version (**)
85+
// getcfilters v4 70015 BIP157 not BIP-associated to p2p version (**)
86+
// cfcheckpt v4 70015 BIP157 not BIP-associated to p2p version (**)
87+
// getcfcheckpt v4 70015 BIP157 not BIP-associated to p2p version (**)
88+
// cfheaders v4 70015 BIP157 not BIP-associated to p2p version (**)
89+
// getcfheaders v4 70015 BIP157 not BIP-associated to p2p version (**)
8690
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8791

8892
enum level: uint32_t

0 commit comments

Comments
 (0)