test_utils: init switch with channeldb
This commit is contained in:
parent
935c757102
commit
4f5edc1b2e
@ -291,7 +291,13 @@ func createTestPeer(notifier chainntnfs.ChainNotifier,
|
|||||||
breachArbiter: breachArbiter,
|
breachArbiter: breachArbiter,
|
||||||
chainArb: chainArb,
|
chainArb: chainArb,
|
||||||
}
|
}
|
||||||
s.htlcSwitch = htlcswitch.New(htlcswitch.Config{})
|
htlcSwitch, err := htlcswitch.New(htlcswitch.Config{
|
||||||
|
DB: dbAlice,
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, nil, nil, nil, err
|
||||||
|
}
|
||||||
|
s.htlcSwitch = htlcSwitch
|
||||||
s.htlcSwitch.Start()
|
s.htlcSwitch.Start()
|
||||||
|
|
||||||
alicePeer := &peer{
|
alicePeer := &peer{
|
||||||
|
Loading…
Reference in New Issue
Block a user