mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-19 13:17:32 +02:00
test_utils: init switch with channeldb
This commit is contained in:
parent
935c757102
commit
4f5edc1b2e
1 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue