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,
|
||||
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()
|
||||
|
||||
alicePeer := &peer{
|
||||
|
Loading…
Reference in New Issue
Block a user