mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 13:27:56 +01:00
chanacceptor: add simple taproot channels
This commit is contained in:
parent
a1b0a7eb02
commit
ebf98c6d51
@ -249,6 +249,7 @@ func (r *RPCAcceptor) sendAcceptRequests(errChan chan error,
|
|||||||
acceptRequests := make(map[[32]byte]*chanAcceptInfo)
|
acceptRequests := make(map[[32]byte]*chanAcceptInfo)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
//nolint:lll
|
||||||
select {
|
select {
|
||||||
// Consume requests passed to us from our Accept() function and
|
// Consume requests passed to us from our Accept() function and
|
||||||
// send them into our stream.
|
// send them into our stream.
|
||||||
@ -331,6 +332,30 @@ func (r *RPCAcceptor) sendAcceptRequests(errChan chan error,
|
|||||||
):
|
):
|
||||||
commitmentType = lnrpc.CommitmentType_ANCHORS
|
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(
|
case channelFeatures.OnlyContains(
|
||||||
lnwire.StaticRemoteKeyRequired,
|
lnwire.StaticRemoteKeyRequired,
|
||||||
):
|
):
|
||||||
|
Loading…
Reference in New Issue
Block a user