Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
c234faf
chanstate: make store channel types generic
ziggie1984 May 14, 2026
7fa0a00
chanstate: move channel type flags
ziggie1984 May 14, 2026
f0a3a5e
chanstate: move open channel errors
ziggie1984 May 14, 2026
b750a2f
chanstate: move shutdown metadata
ziggie1984 May 14, 2026
cadd613
chanstate: add open channel lifecycle store
ziggie1984 May 14, 2026
4d347ed
chanstate: add open channel status store
ziggie1984 May 14, 2026
4524474
chanstate: add open channel close stores
ziggie1984 May 14, 2026
d0704de
chanstate: add pending channel setup store
ziggie1984 May 14, 2026
11126f2
chanstate: move commitment value types
ziggie1984 May 14, 2026
6271a8c
chanstate: move log update type
ziggie1984 May 14, 2026
095fe60
chanstate: add commitment store facet
ziggie1984 May 14, 2026
28903f6
chanstate: move commitment diff types
ziggie1984 May 14, 2026
f36c5af
chanstate: add remote commit chain store
ziggie1984 May 14, 2026
5c4b26c
chanstate: add commit lookup store
ziggie1984 May 14, 2026
3cffa84
chanstate: add revocation insert store
ziggie1984 May 14, 2026
c21fe9c
chanstate: move forwarding package types
ziggie1984 May 14, 2026
ac852fd
chanstate: add commit tail store
ziggie1984 May 14, 2026
30856f3
chanstate: add forwarding package store
ziggie1984 May 14, 2026
87868f6
chanstate: add commitment read stores
ziggie1984 May 14, 2026
29516c7
channeldb: move revocation log reads
ziggie1984 May 14, 2026
03f5dbe
chanstate: move revocation log types
ziggie1984 May 14, 2026
19ef1d3
chanstate: add previous state lookup
ziggie1984 May 14, 2026
4292218
channeldb: move revocation tail helper
ziggie1984 May 14, 2026
3c2808a
channeldb: store channel state by interface
ziggie1984 May 14, 2026
79b0a9c
channeldb: split out channel kv helpers
ziggie1984 May 14, 2026
bd80da6
channeldb: add channel store accessors
ziggie1984 May 15, 2026
b086ceb
channeldb: derive channel packagers
ziggie1984 May 15, 2026
94b095a
chanstate: move channel snapshot type
ziggie1984 May 15, 2026
5798d3c
chanstate: move taproot channel helpers
ziggie1984 May 15, 2026
bb2a788
channeldb: add store status check
ziggie1984 May 15, 2026
0a8a5fb
chanstate: move open channel type
ziggie1984 May 15, 2026
c6ac938
chanstate: remove store generics
ziggie1984 May 15, 2026
c73335f
chanstate: fix htlc copy
ziggie1984 May 15, 2026
3906d9f
chanstate: use channel types in consumers
ziggie1984 May 15, 2026
55b8121
chanstate: use channel types in interfaces
ziggie1984 May 15, 2026
4d23b23
chanstate: use channel types in fitness
ziggie1984 May 15, 2026
f2af08f
chanstate: use htlc type in beacon
ziggie1984 May 15, 2026
8f24cf9
chanstate: use channel type in status manager
ziggie1984 May 15, 2026
c65b171
chanstate: use channel type in lnpeer
ziggie1984 May 15, 2026
f749ffb
chanstate: use channel types in backups
ziggie1984 May 15, 2026
08691fa
chanstate: use channel type in backup notifier
ziggie1984 May 15, 2026
7e5fea8
chanstate: use channel type in wallet rpc
ziggie1984 May 15, 2026
597f6b5
chanstate: use channel types in switch config
ziggie1984 May 15, 2026
e91a03a
chanstate: use channel types in local chans
ziggie1984 May 15, 2026
1278e31
chanstate: use channel type in gossiper
ziggie1984 May 15, 2026
a467ea0
chanstate: use channel types in watchtower
ziggie1984 May 15, 2026
c65c7e3
chanstate: use channel types in link config
ziggie1984 May 15, 2026
7222b3e
funding: use channel state open channel
ziggie1984 May 16, 2026
b875172
server: use channel state open channel
ziggie1984 May 16, 2026
23d821b
rpcserver: use channel state open channel
ziggie1984 May 16, 2026
4bdb9e4
chanrestore: use channel state open channel
ziggie1984 May 16, 2026
7f22c7f
contractcourt: use channel state open channel
ziggie1984 May 16, 2026
88b831f
lnwallet: use channel state open channel
ziggie1984 May 16, 2026
f2be32a
peer: use channel state open channel
ziggie1984 May 16, 2026
05afb5f
htlcswitch: use channel state open channel
ziggie1984 May 16, 2026
44938fb
chanstate: move funding tx presence helper
ziggie1984 May 18, 2026
c6c9024
chanstate: move forwarding kv package
ziggie1984 May 18, 2026
ea62b8b
chanstate: move forwarding kv tests
ziggie1984 May 18, 2026
6445f49
chanstate: move revocation log kv helpers
ziggie1984 May 18, 2026
8f776cb
chanstate: move final htlc kv helpers
ziggie1984 May 18, 2026
0c0fe0f
chanstate: move shutdown kv helpers
ziggie1984 May 18, 2026
1d433ed
chanstate: move data loss kv helpers
ziggie1984 May 18, 2026
15cd3e9
chanstate: move close tx kv helpers
ziggie1984 May 18, 2026
7a1b9bc
chanstate: move channel setup kv helpers
ziggie1984 May 18, 2026
6a0002f
chanstate: move thaw height kv helpers
ziggie1984 May 18, 2026
054cd09
chanstate: move channel kv keys
ziggie1984 May 18, 2026
0e63218
chanstate: move open channel bucket helpers
ziggie1984 May 18, 2026
8c18dc5
chanstate: move outpoint index kv helpers
ziggie1984 May 18, 2026
eee89d0
chanstate: move db codec
ziggie1984 May 18, 2026
d943693
chanstate: move htlc serialization
ziggie1984 May 18, 2026
a4b91de
chanstate: move log update serialization
ziggie1984 May 18, 2026
1cc48df
chanstate: move commitment serialization
ziggie1984 May 18, 2026
94c8d5c
chanstate: move commit diff serialization
ziggie1984 May 18, 2026
2073f32
chanstate: move open channel tlv data
ziggie1984 May 18, 2026
cab7094
chanstate: move channel config serialization
ziggie1984 May 18, 2026
b159f82
chanstate: group commitment kv codecs
ziggie1984 May 18, 2026
ea41447
chanstate: move kv serialization to stores
ziggie1984 May 18, 2026
a4dd2c9
chanstate: group open channel kv tlv data
ziggie1984 May 18, 2026
564def5
chanstate: move config kv serialization
ziggie1984 May 18, 2026
c48e874
chanstate: move revocation kv serialization
ziggie1984 May 18, 2026
386540f
chanstate: move forwarding kv codecs
ziggie1984 May 18, 2026
c5867c0
chanstate: move revocation tlv adapters
ziggie1984 May 18, 2026
a544352
chanstate: move close summary kv storage
ziggie1984 May 18, 2026
440fbd7
chanstate: move open channel info storage
ziggie1984 May 18, 2026
18bfeac
chanstate: move commitment kv storage
ziggie1984 May 18, 2026
7a82ef4
chanstate: move open channel kv storage
ziggie1984 May 18, 2026
23ab7b5
chanstate: move channel exists error
ziggie1984 May 18, 2026
c8f7b1e
chanstate: move open channel bucket sync
ziggie1984 May 18, 2026
e2ab258
chanstate: move borked channel check
ziggie1984 May 18, 2026
eacf112
chanstate: move open channel metadata updates
ziggie1984 May 18, 2026
235f641
chanstate: move open channel status updates
ziggie1984 May 18, 2026
7b3657b
chanstate: move data loss store methods
ziggie1984 May 18, 2026
6f4f5f5
chanstate: move close tx store methods
ziggie1984 May 18, 2026
b00b27e
chanstate: move shutdown store methods
ziggie1984 May 18, 2026
6152ae3
chanstate: move forwarding store methods
ziggie1984 May 18, 2026
62da24a
chanstate: move commitment read methods
ziggie1984 May 18, 2026
e6b18f5
chanstate: move commit chain kv store
ziggie1984 May 18, 2026
34e082c
chanstate: move revocation log kv store
ziggie1984 May 18, 2026
2214d18
chanstate: move commitment update store
ziggie1984 May 18, 2026
42cf8f2
chanstate: move close channel kv store
ziggie1984 May 18, 2026
f665ad6
chanstate: move refresh channel store
ziggie1984 May 18, 2026
33bbfc4
chanstate: move pending channel sync
ziggie1984 May 18, 2026
cde9289
chanstate: fold channel kv helper files
ziggie1984 May 18, 2026
99c6c10
chanstate: move channel setup kv store
ziggie1984 May 18, 2026
3c8b080
chanstate: move final htlc kv store
ziggie1984 May 18, 2026
aac67df
chanstate: move fwd package kv store
ziggie1984 May 18, 2026
c2c36e8
chanstate: move shutdown kv store
ziggie1984 May 18, 2026
3d8ecc8
chanstate: move close tx kv store
ziggie1984 May 18, 2026
1b88e3c
chanstate: move status kv store
ziggie1984 May 18, 2026
dcdc159
chanstate: move lifecycle kv methods
ziggie1984 May 18, 2026
b140c7d
chanstate: move commitment kv store
ziggie1984 May 18, 2026
f74116b
chanstate: move revocation tail helper
ziggie1984 May 18, 2026
af2b3eb
chanstate: move closed summary kv methods
ziggie1984 May 18, 2026
98caf7c
chanstate: move historical channel kv store
ziggie1984 May 18, 2026
028d971
chanstate: move open channel read kv store
ziggie1984 May 18, 2026
13c62c9
chanstate: move abandon channel kv store
ziggie1984 May 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions chanbackup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/btcsuite/btcd/wire/v2"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/chanstate"
"github.com/lightningnetwork/lnd/fn/v2"
)

Expand All @@ -14,19 +15,19 @@ import (
// commitment transaction broadcast.
type LiveChannelSource interface {
// FetchAllChannels returns all known live channels.
FetchAllChannels() ([]*channeldb.OpenChannel, error)
FetchAllChannels() ([]*chanstate.OpenChannel, error)

// FetchChannel attempts to locate a live channel identified by the
// passed chanPoint. Optionally an existing db tx can be supplied.
FetchChannel(chanPoint wire.OutPoint) (*channeldb.OpenChannel, error)
FetchChannel(chanPoint wire.OutPoint) (*chanstate.OpenChannel, error)
}

// assembleChanBackup attempts to assemble a static channel backup for the
// passed open channel. The backup includes all information required to restore
// the channel, as well as addressing information so we can find the peer and
// reconnect to them to initiate the protocol.
func assembleChanBackup(ctx context.Context, addrSource channeldb.AddrSource,
openChan *channeldb.OpenChannel) (*Single, error) {
openChan *chanstate.OpenChannel) (*Single, error) {

log.Debugf("Crafting backup for ChannelPoint(%v)",
openChan.FundingOutpoint)
Expand Down Expand Up @@ -55,7 +56,7 @@ func assembleChanBackup(ctx context.Context, addrSource channeldb.AddrSource,
// in loss of funds! This may happen if an outdated channel backup is attempted
// to be used to force close the channel.
func buildCloseTxInputs(
targetChan *channeldb.OpenChannel) fn.Option[CloseTxInputs] {
targetChan *chanstate.OpenChannel) fn.Option[CloseTxInputs] {

log.Debugf("Crafting CloseTxInputs for ChannelPoint(%v)",
targetChan.FundingOutpoint)
Expand Down
14 changes: 8 additions & 6 deletions chanbackup/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ 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/stretchr/testify/require"
)

type mockChannelSource struct {
chans map[wire.OutPoint]*channeldb.OpenChannel
chans map[wire.OutPoint]*chanstate.OpenChannel

failQuery bool

Expand All @@ -22,17 +22,19 @@ type mockChannelSource struct {

func newMockChannelSource() *mockChannelSource {
return &mockChannelSource{
chans: make(map[wire.OutPoint]*channeldb.OpenChannel),
chans: make(map[wire.OutPoint]*chanstate.OpenChannel),
addrs: make(map[[33]byte][]net.Addr),
}
}

func (m *mockChannelSource) FetchAllChannels() ([]*channeldb.OpenChannel, error) {
func (m *mockChannelSource) FetchAllChannels() (
[]*chanstate.OpenChannel, error) {

if m.failQuery {
return nil, fmt.Errorf("fail")
}

chans := make([]*channeldb.OpenChannel, 0, len(m.chans))
chans := make([]*chanstate.OpenChannel, 0, len(m.chans))
for _, channel := range m.chans {
chans = append(chans, channel)
}
Expand All @@ -41,7 +43,7 @@ func (m *mockChannelSource) FetchAllChannels() ([]*channeldb.OpenChannel, error)
}

func (m *mockChannelSource) FetchChannel(chanPoint wire.OutPoint) (
*channeldb.OpenChannel, error) {
*chanstate.OpenChannel, error) {

if m.failQuery {
return nil, fmt.Errorf("fail")
Expand Down
4 changes: 2 additions & 2 deletions chanbackup/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sync/atomic"

"github.com/btcsuite/btcd/wire/v2"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/chanstate"
"github.com/lightningnetwork/lnd/keychain"
"github.com/lightningnetwork/lnd/lnutils"
)
Expand All @@ -31,7 +31,7 @@ type Swapper interface {
// ChannelWithAddrs bundles an open channel along with all the addresses for
// the channel peer.
type ChannelWithAddrs struct {
*channeldb.OpenChannel
*chanstate.OpenChannel

// Addrs is the set of addresses that we can use to reach the target
// peer.
Expand Down
8 changes: 4 additions & 4 deletions chanbackup/single.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/btcsuite/btcd/btcutil/v2"
"github.com/btcsuite/btcd/chainhash/v2"
"github.com/btcsuite/btcd/wire/v2"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/chanstate"
"github.com/lightningnetwork/lnd/fn/v2"
"github.com/lightningnetwork/lnd/keychain"
"github.com/lightningnetwork/lnd/lnencrypt"
Expand Down Expand Up @@ -169,7 +169,7 @@ type Single struct {
//
// NOTE: Of the items in the ChannelConstraints, we only write the CSV
// delay.
LocalChanCfg channeldb.ChannelConfig
LocalChanCfg chanstate.ChannelConfig

// RemoteChanCfg is the remote channel confirmation. We store this as
// well since we'll need some of their keys to re-derive things like
Expand All @@ -178,7 +178,7 @@ type Single struct {
//
// NOTE: Of the items in the ChannelConstraints, we only write the CSV
// delay.
RemoteChanCfg channeldb.ChannelConfig
RemoteChanCfg chanstate.ChannelConfig

// ShaChainRootDesc describes how to derive the private key that was
// used as the shachain root for this channel.
Expand Down Expand Up @@ -234,7 +234,7 @@ type CloseTxInputs struct {
// connect to the channel peer. If possible, we include the data needed to
// produce a force close transaction from the most recent state using externally
// provided private key.
func NewSingle(channel *channeldb.OpenChannel,
func NewSingle(channel *chanstate.OpenChannel,
nodeAddrs []net.Addr) Single {

var shaChainRootDesc keychain.KeyDescriptor
Expand Down
22 changes: 11 additions & 11 deletions chanbackup/single_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/btcsuite/btcd/chainhash/v2"
"github.com/btcsuite/btcd/wire/v2"
"github.com/davecgh/go-spew/spew"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/chanstate"
"github.com/lightningnetwork/lnd/fn/v2"
"github.com/lightningnetwork/lnd/keychain"
"github.com/lightningnetwork/lnd/lnencrypt"
Expand Down Expand Up @@ -135,7 +135,7 @@ func assertSingleEqual(t *testing.T, a, b Single) {
}
}

func genRandomOpenChannelShell() (*channeldb.OpenChannel, error) {
func genRandomOpenChannelShell() (*chanstate.OpenChannel, error) {
var testPriv [32]byte
if _, err := rand.Read(testPriv[:]); err != nil {
return nil, err
Expand All @@ -162,11 +162,11 @@ func genRandomOpenChannelShell() (*channeldb.OpenChannel, error) {
isInitiator = true
}

chanType := channeldb.ChannelType(rand.Intn(1 << 12))
chanType := chanstate.ChannelType(rand.Intn(1 << 12))

localCfg := channeldb.ChannelConfig{
ChannelStateBounds: channeldb.ChannelStateBounds{},
CommitmentParams: channeldb.CommitmentParams{
localCfg := chanstate.ChannelConfig{
ChannelStateBounds: chanstate.ChannelStateBounds{},
CommitmentParams: chanstate.CommitmentParams{
CsvDelay: uint16(rand.Int63()),
},
MultiSigKey: keychain.KeyDescriptor{
Expand Down Expand Up @@ -201,8 +201,8 @@ func genRandomOpenChannelShell() (*channeldb.OpenChannel, error) {
},
}

remoteCfg := channeldb.ChannelConfig{
CommitmentParams: channeldb.CommitmentParams{
remoteCfg := chanstate.ChannelConfig{
CommitmentParams: chanstate.CommitmentParams{
CsvDelay: uint16(rand.Int63()),
},
MultiSigKey: keychain.KeyDescriptor{
Expand All @@ -222,14 +222,14 @@ func genRandomOpenChannelShell() (*channeldb.OpenChannel, error) {
},
}

var localCommit channeldb.ChannelCommitment
var localCommit chanstate.ChannelCommitment
if chanType.IsTaproot() {
var commitSig [64]byte
if _, err := rand.Read(commitSig[:]); err != nil {
return nil, err
}

localCommit = channeldb.ChannelCommitment{
localCommit = chanstate.ChannelCommitment{
CommitTx: sampleCommitTx,
CommitSig: commitSig[:],
CommitHeight: rand.Uint64(),
Expand All @@ -245,7 +245,7 @@ func genRandomOpenChannelShell() (*channeldb.OpenChannel, error) {
tapscriptRootOption = fn.Some(tapscriptRoot)
}

return &channeldb.OpenChannel{
return &chanstate.OpenChannel{
ChainHash: chainHash,
ChanType: chanType,
IsInitiator: isInitiator,
Expand Down
3 changes: 2 additions & 1 deletion chanfitness/chaneventstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/btcsuite/btcd/wire/v2"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/channelnotifier"
"github.com/lightningnetwork/lnd/chanstate"
"github.com/lightningnetwork/lnd/clock"
"github.com/lightningnetwork/lnd/peernotifier"
"github.com/lightningnetwork/lnd/routing/route"
Expand Down Expand Up @@ -84,7 +85,7 @@ type Config struct {
// GetOpenChannels provides a list of existing open channels which is
// used to populate the ChannelEventStore with a set of channels on
// startup.
GetOpenChannels func() ([]*channeldb.OpenChannel, error)
GetOpenChannels func() ([]*chanstate.OpenChannel, error)

// IsPeerOnline returns whether the peer with the given pubkey is
// currently connected. It is used to seed the initial online state of a
Expand Down
5 changes: 3 additions & 2 deletions chanfitness/chaneventstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,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/clock"
"github.com/lightningnetwork/lnd/routing/route"
"github.com/lightningnetwork/lnd/subscribe"
Expand Down Expand Up @@ -35,7 +36,7 @@ func TestStartStoreError(t *testing.T) {
name string
ChannelEvents func() (subscribe.Subscription, error)
PeerEvents func() (subscribe.Subscription, error)
GetChannels func() ([]*channeldb.OpenChannel, error)
GetChannels func() ([]*chanstate.OpenChannel, error)
}{
{
name: "Channel events fail",
Expand All @@ -50,7 +51,7 @@ func TestStartStoreError(t *testing.T) {
name: "Get open channels fails",
ChannelEvents: okSubscribeFunc,
PeerEvents: okSubscribeFunc,
GetChannels: func() ([]*channeldb.OpenChannel, error) {
GetChannels: func() ([]*chanstate.OpenChannel, error) {
return nil, errors.New("intentional test err")
},
},
Expand Down
7 changes: 4 additions & 3 deletions chanfitness/chaneventstore_testctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/btcsuite/btcd/wire/v2"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/channelnotifier"
"github.com/lightningnetwork/lnd/chanstate"
"github.com/lightningnetwork/lnd/clock"
"github.com/lightningnetwork/lnd/peernotifier"
"github.com/lightningnetwork/lnd/routing/route"
Expand Down Expand Up @@ -83,7 +84,7 @@ func newChanEventStoreTestCtx(t *testing.T) *chanEventStoreTestCtx {
SubscribePeerEvents: func() (subscribe.Subscription, error) {
return testCtx.peerSubscription, nil
},
GetOpenChannels: func() ([]*channeldb.OpenChannel, error) {
GetOpenChannels: func() ([]*chanstate.OpenChannel, error) {
return nil, nil
},
WriteFlapCount: func(updates map[route.Vertex]*channeldb.FlapCount) error {
Expand Down Expand Up @@ -192,7 +193,7 @@ func (c *chanEventStoreTestCtx) closeChannel(channel wire.OutPoint,
peer *btcec.PublicKey) {

update := channelnotifier.ClosedChannelEvent{
CloseSummary: &channeldb.ChannelCloseSummary{
CloseSummary: &chanstate.ChannelCloseSummary{
ChanPoint: channel,
RemotePub: peer,
},
Expand Down Expand Up @@ -232,7 +233,7 @@ func (c *chanEventStoreTestCtx) sendChannelOpenedUpdate(pubkey *btcec.PublicKey,
channel wire.OutPoint) {

update := channelnotifier.OpenChannelEvent{
Channel: &channeldb.OpenChannel{
Channel: &chanstate.OpenChannel{
FundingOutpoint: channel,
IdentityPub: pubkey,
},
Expand Down
3 changes: 2 additions & 1 deletion channel_notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/lightningnetwork/lnd/chanbackup"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/channelnotifier"
"github.com/lightningnetwork/lnd/chanstate"
)

// channelNotifier is an implementation of the chanbackup.ChannelNotifier
Expand Down Expand Up @@ -46,7 +47,7 @@ func (c *channelNotifier) SubscribeChans(ctx context.Context,
// sendChanOpenUpdate is a closure that sends a ChannelEvent to the
// chanUpdates channel to inform subscribers about new pending or
// confirmed channels.
sendChanOpenUpdate := func(newOrPendingChan *channeldb.OpenChannel) {
sendChanOpenUpdate := func(newOrPendingChan *chanstate.OpenChannel) {
_, nodeAddrs, err := c.addrs.AddrsForNode(
ctx, newOrPendingChan.IdentityPub,
)
Expand Down
Loading
Loading