lightningd: allow extra tlv types in non-experimental mode.

The old `experimental-accept-extra-tlv-types` is now `accept-htlc-tlv-types`.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: Config: `accept-htlc-tlv-types` lets us accept unknown even HTLC TLV fields we would normally reject on parsing (was EXPERIMENTAL-only `experimental-accept-extra-tlv-types`).
This commit is contained in:
Rusty Russell
2022-09-21 13:39:51 +09:30
parent df4b477e88
commit 0868fa9f1e
6 changed files with 40 additions and 22 deletions

View File

@@ -97,7 +97,8 @@ On success, an object is returned, containing:
- **log-timestamps** (boolean, optional): `log-timestamps` field from config or cmdline, or default
- **force-feerates** (string, optional): force-feerate configuration setting, if any
- **subdaemon** (string, optional): `subdaemon` fields from config or cmdline if any (can be more than one)
- **fetchinvoice-noconnect** (boolean, optional): `featchinvoice-noconnect` fileds from config or cmdline, or default
- **fetchinvoice-noconnect** (boolean, optional): `fetchinvoice-noconnect` fields from config or cmdline, or default
- **accept-htlc-tlv-types** (string, optional): `accept-extra-tlvs-type` fields from config or cmdline, or not present
- **tor-service-password** (string, optional): `tor-service-password` field from config or cmdline, if any
- **dev-allowdustreserve** (boolean, optional): Whether we allow setting dust reserves
@@ -217,5 +218,4 @@ RESOURCES
---------
Main web site: <https://github.com/ElementsProject/lightning>
[comment]: # ( SHA256STAMP:310cc00ef62e7075d5d2588b0492c2dd96f507cc739f67d56ccc6c4f3135bca5)
[comment]: # ( SHA256STAMP:5871ac751654339ed65ab905d61f0bc3afbb8576a33a5c4e9a73d2084f438582)

View File

@@ -424,6 +424,12 @@ the outgoing is redeemed.
might need to redeem this on-chain, so this is the number of blocks we
have to do that.
* **accept-htlc-tlv-types**=*types*
Normally HTLC onions which contain unknown even fields are rejected.
This option specifies that these (comma-separated) types are to be
accepted, and ignored.
### Invoice control options:
* **autocleaninvoice-cycle**=*SECONDS* [plugin `autoclean`]

View File

@@ -281,7 +281,11 @@
},
"fetchinvoice-noconnect": {
"type": "boolean",
"description": "`featchinvoice-noconnect` fileds from config or cmdline, or default"
"description": "`fetchinvoice-noconnect` fields from config or cmdline, or default"
},
"accept-htlc-tlv-types": {
"type": "string",
"description": "`accept-extra-tlvs-type` fields from config or cmdline, or not present"
},
"tor-service-password": {
"type": "string",

View File

@@ -1,6 +1,5 @@
{
"flags": [
"experimental-accept-extra-tlv-types",
"channel-fee-max-base-msat",
"channel-fee-max-proportional-thousandths",
"funder-fund-probability",
@@ -18,4 +17,4 @@
"lease-fee-basis",
"lease-funding-weight"
]
}
}