mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Streamlining flow of interaction between test lnd customer / merchant
This commit is contained in:
@@ -115,14 +115,15 @@ namespace BTCPayServer.Tests
|
|||||||
switch (channel?.State)
|
switch (channel?.State)
|
||||||
{
|
{
|
||||||
case null:
|
case null:
|
||||||
var clightning = new NodeInfo(merchantInfo.NodeId, merchantInfo.Address, merchantInfo.P2PPort);
|
|
||||||
await CustomerLightningD.ConnectAsync(clightning);
|
|
||||||
var address = await CustomerLightningD.NewAddressAsync();
|
var address = await CustomerLightningD.NewAddressAsync();
|
||||||
await ExplorerNode.SendToAddressAsync(address, Money.Coins(0.2m));
|
await ExplorerNode.SendToAddressAsync(address, Money.Coins(0.5m));
|
||||||
ExplorerNode.Generate(6);
|
ExplorerNode.Generate(1);
|
||||||
await WaitLNSynched(client);
|
await WaitLNSynched(client);
|
||||||
await Task.Delay(1000);
|
await Task.Delay(1000);
|
||||||
await CustomerLightningD.FundChannelAsync(clightning, Money.Satoshis(16777215));
|
|
||||||
|
var merchantNodeInfo = new NodeInfo(merchantInfo.NodeId, merchantInfo.Address, merchantInfo.P2PPort);
|
||||||
|
await CustomerLightningD.ConnectAsync(merchantNodeInfo);
|
||||||
|
await CustomerLightningD.FundChannelAsync(merchantNodeInfo, Money.Satoshis(16777215));
|
||||||
break;
|
break;
|
||||||
case "CHANNELD_AWAITING_LOCKIN":
|
case "CHANNELD_AWAITING_LOCKIN":
|
||||||
ExplorerNode.Generate(1);
|
ExplorerNode.Generate(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user