2020-06-29 04:44:35 +02:00
|
|
|
using System;
|
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
|
|
|
|
{
|
2020-06-29 05:07:48 +02:00
|
|
|
readonly ServerTester parent;
|
2018-03-17 07:45:44 +01:00
|
|
|
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; }
|
2020-06-28 10:55:27 +02:00
|
|
|
|
2018-03-17 07:45:44 +01:00
|
|
|
}
|
|
|
|
}
|