From c8093400953306337a4fcb6bbb0c40934ab7d86d Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 20 Nov 2024 09:45:01 +0100 Subject: [PATCH] chanacceptor: add custom channel commitment type --- chanacceptor/rpcacceptor.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/chanacceptor/rpcacceptor.go b/chanacceptor/rpcacceptor.go index 779ba6f28..6ec787895 100644 --- a/chanacceptor/rpcacceptor.go +++ b/chanacceptor/rpcacceptor.go @@ -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, ):