2018-03-17 07:45:44 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-08-30 04:50:39 +02:00
|
|
|
|
using BTCPayServer.Lightning.CLightning;
|
2018-03-17 07:45:44 +01:00
|
|
|
|
using NBitcoin;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Tests
|
|
|
|
|
{
|
|
|
|
|
public class LightningDTester
|
|
|
|
|
{
|
|
|
|
|
ServerTester parent;
|
|
|
|
|
public LightningDTester(ServerTester parent, string environmentName, string defaultRPC, string defaultHost, Network network)
|
|
|
|
|
{
|
|
|
|
|
this.parent = parent;
|
2018-08-30 04:50:39 +02:00
|
|
|
|
RPC = new CLightningClient(new Uri(parent.GetEnvironment(environmentName, defaultRPC)), network);
|
2018-03-17 07:45:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
2018-08-30 04:50:39 +02:00
|
|
|
|
public CLightningClient RPC { get; }
|
2018-03-17 07:45:44 +01:00
|
|
|
|
public string P2PHost { get; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|