mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-21 17:20:03 +02:00
netann: remove unused param in newMockGraph
This commit is contained in:
parent
09b6745086
commit
c5f17180bc
@ -130,8 +130,8 @@ type mockGraph struct {
|
|||||||
updates chan *lnwire.ChannelUpdate1
|
updates chan *lnwire.ChannelUpdate1
|
||||||
}
|
}
|
||||||
|
|
||||||
func newMockGraph(t *testing.T, numChannels int,
|
func newMockGraph(t *testing.T, numChannels int, startEnabled bool,
|
||||||
startActive, startEnabled bool, pubKey *btcec.PublicKey) *mockGraph {
|
pubKey *btcec.PublicKey) *mockGraph {
|
||||||
|
|
||||||
g := &mockGraph{
|
g := &mockGraph{
|
||||||
channels: make([]*channeldb.OpenChannel, 0, numChannels),
|
channels: make([]*channeldb.OpenChannel, 0, numChannels),
|
||||||
@ -320,9 +320,7 @@ func newManagerCfg(t *testing.T, numChannels int,
|
|||||||
require.NoError(t, err, "unable to generate key pair")
|
require.NoError(t, err, "unable to generate key pair")
|
||||||
privKeySigner := keychain.NewPrivKeyMessageSigner(privKey, testKeyLoc)
|
privKeySigner := keychain.NewPrivKeyMessageSigner(privKey, testKeyLoc)
|
||||||
|
|
||||||
graph := newMockGraph(
|
graph := newMockGraph(t, numChannels, startEnabled, privKey.PubKey())
|
||||||
t, numChannels, startEnabled, startEnabled, privKey.PubKey(),
|
|
||||||
)
|
|
||||||
htlcSwitch := newMockSwitch()
|
htlcSwitch := newMockSwitch()
|
||||||
|
|
||||||
cfg := &netann.ChanStatusConfig{
|
cfg := &netann.ChanStatusConfig{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user