htlcswitch: remove Switch reference from channelLink
This commit is contained in:
1 parent
38db17b8cc
commit
be69b022d9
5 files changed
+395
-303
No files matched your search
@@ -13,9 +13,10 @@ import (
|
||||
type linkTestContext struct {
|
||||
t *testing.T
|
||||
|
||||
aliceLink ChannelLink
|
||||
bobChannel *lnwallet.LightningChannel
|
||||
aliceMsgs <-chan lnwire.Message
|
||||
aliceSwitch *Switch
|
||||
aliceLink ChannelLink
|
||||
bobChannel *lnwallet.LightningChannel
|
||||
aliceMsgs <-chan lnwire.Message
|
||||
}
|
||||
|
||||
// sendHtlcBobToAlice sends an HTLC from Bob to Alice, that pays to a preimage
|
||||
@@ -39,7 +40,7 @@ func (l *linkTestContext) sendHtlcAliceToBob(htlcID int,
|
||||
|
||||
l.t.Helper()
|
||||
|
||||
circuitMap := l.aliceLink.(*channelLink).cfg.Switch.circuits
|
||||
circuitMap := l.aliceSwitch.circuits
|
||||
fwdActions, err := circuitMap.CommitCircuits(
|
||||
&PaymentCircuit{
|
||||
Incoming: CircuitKey{
|
||||
|
||||
Reference in new issue
Block a user