From ebf98c6d519b021ab1eb1215e8457f79409c9fb8 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 25 Sep 2023 17:09:27 +0200 Subject: [PATCH] chanacceptor: add simple taproot channels --- chanacceptor/rpcacceptor.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/chanacceptor/rpcacceptor.go b/chanacceptor/rpcacceptor.go index ee4c03b97..779ba6f28 100644 --- a/chanacceptor/rpcacceptor.go +++ b/chanacceptor/rpcacceptor.go @@ -249,6 +249,7 @@ func (r *RPCAcceptor) sendAcceptRequests(errChan chan error, acceptRequests := make(map[[32]byte]*chanAcceptInfo) for { + //nolint:lll select { // Consume requests passed to us from our Accept() function and // send them into our stream. @@ -331,6 +332,30 @@ func (r *RPCAcceptor) sendAcceptRequests(errChan chan error, ): commitmentType = lnrpc.CommitmentType_ANCHORS + case channelFeatures.OnlyContains( + lnwire.SimpleTaprootChannelsRequiredStaging, + lnwire.ZeroConfRequired, + lnwire.ScidAliasRequired, + ): + commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT + + case channelFeatures.OnlyContains( + lnwire.SimpleTaprootChannelsRequiredStaging, + lnwire.ZeroConfRequired, + ): + commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT + + case channelFeatures.OnlyContains( + lnwire.SimpleTaprootChannelsRequiredStaging, + lnwire.ScidAliasRequired, + ): + commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT + + case channelFeatures.OnlyContains( + lnwire.SimpleTaprootChannelsRequiredStaging, + ): + commitmentType = lnrpc.CommitmentType_SIMPLE_TAPROOT + case channelFeatures.OnlyContains( lnwire.StaticRemoteKeyRequired, ):