Skip to content

Commit cbd5410

Browse files
committed
multi: remove peer.go, change all references to point to peer pkg
1 parent 9be9d69 commit cbd5410

16 files changed

+903
-547
lines changed

fundingmanager_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ func (m *mockChanEvent) NotifyPendingOpenChannelEvent(outpoint wire.OutPoint,
166166
}
167167
}
168168

169+
type newChannelMsg struct {
170+
channel *channeldb.OpenChannel
171+
err chan error
172+
}
173+
169174
type testNode struct {
170175
privKey *btcec.PrivateKey
171176
addr *lnwire.NetAddress

lnwire/commit_sig.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (c *CommitSig) MaxPayloadLength(uint32) uint32 {
8989
// TargetChanID returns the channel id of the link for which this message is
9090
// intended.
9191
//
92-
// NOTE: Part of lnd.LinkUpdater interface.
92+
// NOTE: Part of peer.LinkUpdater interface.
9393
func (c *CommitSig) TargetChanID() ChannelID {
9494
return c.ChanID
9595
}

lnwire/revoke_and_ack.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (c *RevokeAndAck) MaxPayloadLength(uint32) uint32 {
8585
// TargetChanID returns the channel id of the link for which this message is
8686
// intended.
8787
//
88-
// NOTE: Part of lnd.LinkUpdater interface.
88+
// NOTE: Part of peer.LinkUpdater interface.
8989
func (c *RevokeAndAck) TargetChanID() ChannelID {
9090
return c.ChanID
9191
}

lnwire/update_add_htlc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (c *UpdateAddHTLC) MaxPayloadLength(uint32) uint32 {
113113
// TargetChanID returns the channel id of the link for which this message is
114114
// intended.
115115
//
116-
// NOTE: Part of lnd.LinkUpdater interface.
116+
// NOTE: Part of peer.LinkUpdater interface.
117117
func (c *UpdateAddHTLC) TargetChanID() ChannelID {
118118
return c.ChanID
119119
}

lnwire/update_fail_htlc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (c *UpdateFailHTLC) MaxPayloadLength(uint32) uint32 {
8989
// TargetChanID returns the channel id of the link for which this message is
9090
// intended.
9191
//
92-
// NOTE: Part of lnd.LinkUpdater interface.
92+
// NOTE: Part of peer.LinkUpdater interface.
9393
func (c *UpdateFailHTLC) TargetChanID() ChannelID {
9494
return c.ChanID
9595
}

lnwire/update_fail_malformed_htlc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (c *UpdateFailMalformedHTLC) MaxPayloadLength(uint32) uint32 {
7777
// TargetChanID returns the channel id of the link for which this message is
7878
// intended.
7979
//
80-
// NOTE: Part of lnd.LinkUpdater interface.
80+
// NOTE: Part of peer.LinkUpdater interface.
8181
func (c *UpdateFailMalformedHTLC) TargetChanID() ChannelID {
8282
return c.ChanID
8383
}

lnwire/update_fee.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (c *UpdateFee) MaxPayloadLength(uint32) uint32 {
7272
// TargetChanID returns the channel id of the link for which this message is
7373
// intended.
7474
//
75-
// NOTE: Part of lnd.LinkUpdater interface.
75+
// NOTE: Part of peer.LinkUpdater interface.
7676
func (c *UpdateFee) TargetChanID() ChannelID {
7777
return c.ChanID
7878
}

lnwire/update_fulfill_htlc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (c *UpdateFulfillHTLC) MaxPayloadLength(uint32) uint32 {
8282
// TargetChanID returns the channel id of the link for which this message is
8383
// intended.
8484
//
85-
// NOTE: Part of lnd.LinkUpdater interface.
85+
// NOTE: Part of peer.LinkUpdater interface.
8686
func (c *UpdateFulfillHTLC) TargetChanID() ChannelID {
8787
return c.ChanID
8888
}

log.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
"github.com/lightningnetwork/lnd/lnwallet/chanfunding"
3131
"github.com/lightningnetwork/lnd/monitoring"
3232
"github.com/lightningnetwork/lnd/netann"
33+
"github.com/lightningnetwork/lnd/peer"
3334
"github.com/lightningnetwork/lnd/peernotifier"
3435
"github.com/lightningnetwork/lnd/routing"
3536
"github.com/lightningnetwork/lnd/routing/localchans"
@@ -75,7 +76,6 @@ var (
7576
// function should always be called as soon as possible to finish
7677
// setting them up properly with a root logger.
7778
ltndLog = addLndPkgLogger("LTND")
78-
peerLog = addLndPkgLogger("PEER")
7979
rpcsLog = addLndPkgLogger("RPCS")
8080
srvrLog = addLndPkgLogger("SRVR")
8181
fndgLog = addLndPkgLogger("FNDG")
@@ -122,6 +122,7 @@ func SetupLoggers(root *build.RotatingLogWriter) {
122122
AddSubLogger(root, "WTCL", wtclient.UseLogger)
123123
AddSubLogger(root, "PRNF", peernotifier.UseLogger)
124124
AddSubLogger(root, "CHFD", chanfunding.UseLogger)
125+
AddSubLogger(root, "PEER", peer.UseLogger)
125126
AddSubLogger(root, "CHCL", chancloser.UseLogger)
126127

127128
AddSubLogger(root, routing.Subsystem, routing.UseLogger, localchans.UseLogger)

0 commit comments

Comments
 (0)