mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-13 12:32:48 +02:00
chanstate: use channel type in lnpeer
Move lnpeer.NewChannel to embed chanstate.OpenChannel. This keeps the peer-facing channel event type independent of the channeldb compatibility alias while preserving the existing embedded OpenChannel field shape for callers.
This commit is contained in:
parent
cd0383450a
commit
c58d51d593
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"github.com/btcsuite/btcd/btcec/v2"
|
||||
"github.com/btcsuite/btcd/wire/v2"
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/lightningnetwork/lnd/chanstate"
|
||||
"github.com/lightningnetwork/lnd/lnwallet"
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
)
|
||||
|
|
@ -14,7 +14,7 @@ import (
|
|||
// with the set of channel options that may change how the channel is created.
|
||||
// This can be used to pass along the nonce state needed for taproot channels.
|
||||
type NewChannel struct {
|
||||
*channeldb.OpenChannel
|
||||
*chanstate.OpenChannel
|
||||
|
||||
// ChanOpts can be used to change how the channel is created.
|
||||
ChanOpts []lnwallet.ChannelOpt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue