mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-04 18:01:57 +01:00
lntest: define BackendCfg and btcd impl
BackendCfg is an interface that can be backed by different Bitcoin node implementations. We currently use the btcdHarness as our chain backend.
This commit is contained in:
@@ -12970,9 +12970,14 @@ func TestLightningNetworkDaemon(t *testing.T) {
|
||||
}
|
||||
}()
|
||||
|
||||
chainBackend := lntest.BtcdBackendConfig{
|
||||
RPCConfig: btcdHarness.RPCConfig(),
|
||||
P2PAddress: btcdHarness.P2PAddress(),
|
||||
}
|
||||
|
||||
// First create the network harness to gain access to its
|
||||
// 'OnTxAccepted' call back.
|
||||
lndHarness, err = lntest.NewNetworkHarness(btcdHarness)
|
||||
lndHarness, err = lntest.NewNetworkHarness(btcdHarness, chainBackend)
|
||||
if err != nil {
|
||||
ht.Fatalf("unable to create lightning network harness: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user