@@ -41,6 +41,7 @@ static bool contains_common_chain(struct bitcoin_blkid *chains)
41
41
/* Here in case we need to read another message. */
42
42
static struct io_plan * read_init (struct io_conn * conn , struct early_peer * peer );
43
43
44
+ #if EXPERIMENTAL_FEATURES /* BOLT1 remote_addr #917 */
44
45
struct remote_addr_any {
45
46
u8 type ; /* ipv4:1 ipv6:2 */
46
47
}__attribute__((packed ));
@@ -56,6 +57,7 @@ struct remote_addr_ipv6 {
56
57
u8 addr [16 ];
57
58
u16 port ;
58
59
}__attribute__((packed ));
60
+ #endif
59
61
60
62
static struct io_plan * peer_init_received (struct io_conn * conn ,
61
63
struct early_peer * peer )
@@ -105,6 +107,7 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
105
107
106
108
/* fetch optional tlv `remote_addr` */
107
109
remote_addr = NULL ;
110
+ #if EXPERIMENTAL_FEATURES /* BOLT1 remote_addr #917 */
108
111
/* BOLT-remote-address #1:
109
112
* The receiving node:
110
113
* ...
@@ -124,6 +127,7 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
124
127
break ;
125
128
}
126
129
}
130
+ #endif
127
131
128
132
/* The globalfeatures field is now unused, but there was a
129
133
* window where it was: combine the two. */
@@ -221,6 +225,7 @@ struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
221
225
222
226
/* set optional tlv `remote_addr` on incoming IP connections */
223
227
tlvs -> remote_addr = NULL ;
228
+ #if EXPERIMENTAL_FEATURES /* BOLT1 remote_addr #917 */
224
229
/* BOLT-remote-address #1:
225
230
* The sending node:
226
231
* ...
@@ -244,6 +249,7 @@ struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
244
249
break ;
245
250
}
246
251
}
252
+ #endif
247
253
248
254
/* Initially, there were two sets of feature bits: global and local.
249
255
* Local affected peer nodes only, global affected everyone. Both were
0 commit comments