Skip to content

Commit a4195fa

Browse files
authored
Merge pull request #9288 from lightningnetwork/channel-acceptor-commitment-type
[custom channels]: add taproot overlay channel type to channel acceptor
2 parents 4b563e6 + 1c3caf4 commit a4195fa

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

chanacceptor/rpcacceptor.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,30 @@ func (r *RPCAcceptor) sendAcceptRequests(errChan chan error,
356356
):
357357
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT
358358

359+
case channelFeatures.OnlyContains(
360+
lnwire.SimpleTaprootOverlayChansRequired,
361+
lnwire.ZeroConfRequired,
362+
lnwire.ScidAliasRequired,
363+
):
364+
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT_OVERLAY
365+
366+
case channelFeatures.OnlyContains(
367+
lnwire.SimpleTaprootOverlayChansRequired,
368+
lnwire.ZeroConfRequired,
369+
):
370+
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT_OVERLAY
371+
372+
case channelFeatures.OnlyContains(
373+
lnwire.SimpleTaprootOverlayChansRequired,
374+
lnwire.ScidAliasRequired,
375+
):
376+
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT_OVERLAY
377+
378+
case channelFeatures.OnlyContains(
379+
lnwire.SimpleTaprootOverlayChansRequired,
380+
):
381+
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT_OVERLAY
382+
359383
case channelFeatures.OnlyContains(
360384
lnwire.StaticRemoteKeyRequired,
361385
):

docs/release-notes/release-notes-0.18.4.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ types in a series of changes:
3535
* https://github.com/lightningnetwork/lnd/pull/9095
3636
* https://github.com/lightningnetwork/lnd/pull/8960
3737
* https://github.com/lightningnetwork/lnd/pull/9194
38+
* https://github.com/lightningnetwork/lnd/pull/9288
3839

3940
## Functional Enhancements
4041

0 commit comments

Comments
 (0)