mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
chanacceptor: add custom channel commitment type
This commit is contained in:
parent
f9d876e8a3
commit
e074a8fab3
1 changed files with 24 additions and 0 deletions
|
@ -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,
|
||||
):
|
||||
|
|
Loading…
Add table
Reference in a new issue