lnwire: add new feature bits for explicit channel type negotiation

If these bits are present, then both sides can examine the new
CommitmentType TLV field that's present and use this in place of the
existing implicit commiment type negotiation. With this change, it's now
possible to actually deprecate old unsupported commitment types
properly.
This commit is contained in:
Olaoluwa Osuntokun
2021-03-03 19:39:12 -08:00
parent 57b7a668c0
commit d0779e2ec2
3 changed files with 30 additions and 0 deletions

View File

@ -60,4 +60,8 @@ var defaultSetDesc = setDesc{
lnwire.AMPRequired: {
SetInvoiceAmp: {}, // 9A
},
lnwire.ExplicitChannelTypeOptional: {
SetInit: {}, // I
SetNodeAnn: {}, // N
},
}