chore: use EXPERIMENTAL for BOLT1 remote_addr #917

This commit is contained in:
Michael Schmoock 2021-10-19 11:41:25 +02:00 committed by Rusty Russell
parent 6db97b4235
commit df9a34b81e

View File

@ -90,6 +90,7 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
/* fetch optional tlv `remote_addr` */
remote_addr = NULL;
#if EXPERIMENTAL_FEATURES /* BOLT1 remote_addr #917 */
/* BOLT-remote-address #1:
* The receiving node:
* ...
@ -109,6 +110,7 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
break;
}
}
#endif
/* The globalfeatures field is now unused, but there was a
* window where it was: combine the two. */
@ -210,6 +212,7 @@ struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
/* set optional tlv `remote_addr` on incoming IP connections */
tlvs->remote_addr = NULL;
#if EXPERIMENTAL_FEATURES /* BOLT1 remote_addr #917 */
/* BOLT-remote-address #1:
* The sending node:
* ...
@ -233,6 +236,7 @@ struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
break;
}
}
#endif
/* Initially, there were two sets of feature bits: global and local.
* Local affected peer nodes only, global affected everyone. Both were