mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-12 14:42:38 +02:00
Merge pull request #9288 from lightningnetwork/channel-acceptor-commitment-type
[custom channels]: add taproot overlay channel type to channel acceptor
This commit is contained in:
@@ -356,6 +356,30 @@ func (r *RPCAcceptor) sendAcceptRequests(errChan chan error,
|
||||
):
|
||||
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT
|
||||
|
||||
case channelFeatures.OnlyContains(
|
||||
lnwire.SimpleTaprootOverlayChansRequired,
|
||||
lnwire.ZeroConfRequired,
|
||||
lnwire.ScidAliasRequired,
|
||||
):
|
||||
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT_OVERLAY
|
||||
|
||||
case channelFeatures.OnlyContains(
|
||||
lnwire.SimpleTaprootOverlayChansRequired,
|
||||
lnwire.ZeroConfRequired,
|
||||
):
|
||||
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT_OVERLAY
|
||||
|
||||
case channelFeatures.OnlyContains(
|
||||
lnwire.SimpleTaprootOverlayChansRequired,
|
||||
lnwire.ScidAliasRequired,
|
||||
):
|
||||
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT_OVERLAY
|
||||
|
||||
case channelFeatures.OnlyContains(
|
||||
lnwire.SimpleTaprootOverlayChansRequired,
|
||||
):
|
||||
commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT_OVERLAY
|
||||
|
||||
case channelFeatures.OnlyContains(
|
||||
lnwire.StaticRemoteKeyRequired,
|
||||
):
|
||||
|
@@ -35,6 +35,7 @@ types in a series of changes:
|
||||
* https://github.com/lightningnetwork/lnd/pull/9095
|
||||
* https://github.com/lightningnetwork/lnd/pull/8960
|
||||
* https://github.com/lightningnetwork/lnd/pull/9194
|
||||
* https://github.com/lightningnetwork/lnd/pull/9288
|
||||
|
||||
## Functional Enhancements
|
||||
|
||||
|
Reference in New Issue
Block a user