htlcswitch: remove Switch reference from channelLink

This commit is contained in:
Keagan McClelland
2024-02-22 17:38:40 -08:00
parent 38db17b8cc
commit be69b022d9
5 changed files with 395 additions and 303 deletions

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)