From df9a34b81e662e2f986fa85782bf74301de005fd Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Tue, 19 Oct 2021 11:41:25 +0200 Subject: [PATCH] chore: use EXPERIMENTAL for BOLT1 remote_addr #917 --- connectd/peer_exchange_initmsg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/connectd/peer_exchange_initmsg.c b/connectd/peer_exchange_initmsg.c index bf506d391..551de9767 100644 --- a/connectd/peer_exchange_initmsg.c +++ b/connectd/peer_exchange_initmsg.c @@ -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