mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
chore: use EXPERIMENTAL for BOLT1 remote_addr #917
This commit is contained in:
committed by
Rusty Russell
parent
6db97b4235
commit
df9a34b81e
@@ -90,6 +90,7 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
|
|||||||
|
|
||||||
/* fetch optional tlv `remote_addr` */
|
/* fetch optional tlv `remote_addr` */
|
||||||
remote_addr = NULL;
|
remote_addr = NULL;
|
||||||
|
#if EXPERIMENTAL_FEATURES /* BOLT1 remote_addr #917 */
|
||||||
/* BOLT-remote-address #1:
|
/* BOLT-remote-address #1:
|
||||||
* The receiving node:
|
* The receiving node:
|
||||||
* ...
|
* ...
|
||||||
@@ -109,6 +110,7 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The globalfeatures field is now unused, but there was a
|
/* The globalfeatures field is now unused, but there was a
|
||||||
* window where it was: combine the two. */
|
* 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 */
|
/* set optional tlv `remote_addr` on incoming IP connections */
|
||||||
tlvs->remote_addr = NULL;
|
tlvs->remote_addr = NULL;
|
||||||
|
#if EXPERIMENTAL_FEATURES /* BOLT1 remote_addr #917 */
|
||||||
/* BOLT-remote-address #1:
|
/* BOLT-remote-address #1:
|
||||||
* The sending node:
|
* The sending node:
|
||||||
* ...
|
* ...
|
||||||
@@ -233,6 +236,7 @@ struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Initially, there were two sets of feature bits: global and local.
|
/* Initially, there were two sets of feature bits: global and local.
|
||||||
* Local affected peer nodes only, global affected everyone. Both were
|
* Local affected peer nodes only, global affected everyone. Both were
|
||||||
|
|||||||
Reference in New Issue
Block a user