htlcswitch: remove Switch reference from channelLink

This commit is contained in:
Keagan McClelland committed 2024-03-05 16:43:29 -08:00
1 parent 38db17b8cc
commit be69b022d9
5 files changed
+395 -303

No files matched your search

+3 -1
View File
@@ -5263,10 +5263,12 @@ func testSwitchHandlePacketForward(t *testing.T, zeroConf, private,
t.Parallel()
// Create a link for Alice that we'll add to the switch.
aliceLink, _, _, _, _, err :=
harness, err :=
newSingleLinkTestHarness(t, btcutil.SatoshiPerBitcoin, 0)
require.NoError(t, err)
aliceLink := harness.aliceLink
s, err := initSwitchWithTempDB(t, testStartingHeight)
if err != nil {
t.Fatalf("unable to init switch: %v", err)