Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kukks committed Sep 18, 2024
1 parent 1c4e14e commit b7368b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
13 changes: 11 additions & 2 deletions BTCPayApp.Tests/CoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,14 @@ await TestUtils.EventuallyAsync(async () =>
Assert.Equal(Money.Coins(3).Satoshi, utxos.Sum(coin => (Money) coin.Amount));
});

await TestUtils.EventuallyAsync(async () =>
{
requestOfInvoice =
Assert.Single(
await node2.App.Services.GetRequiredService<PaymentsManager>().List(payments => payments));
Assert.Equal(pmLN.Destination, requestOfInvoice.Status.ToString());
});



Expand All @@ -210,7 +217,7 @@ await TestUtils.EventuallyAsync(async () =>

}

private async Task<uint256> FundWallet(RPCClient rpc, BitcoinAddress address, Money m)
private async Task<uint256?> FundWallet(RPCClient rpc, BitcoinAddress address, Money m)
{

var attempts = 0;
Expand All @@ -226,5 +233,7 @@ private async Task<uint256> FundWallet(RPCClient rpc, BitcoinAddress address, Mo
await rpc.GenerateAsync(1);
}
}

return null;
}
}
10 changes: 6 additions & 4 deletions BTCPayApp.UI/Pages/Settings/LightningPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,12 @@
_successMessage = _errorMessage = null;
try
{
_config = await Node.GetConfig();
_config.JITLSP = Model.JitLsp;
_config.RapidGossipSyncUrl = string.IsNullOrEmpty(Model.RgsUrl) ? null : Uri.TryCreate(Model.RgsUrl, UriKind.Absolute, out var uri) ? uri: null;
await Node.UpdateConfig(_config);
await Node.UpdateConfig(async config =>
{
config.JITLSP = Model.JitLsp;
config.RapidGossipSyncUrl = string.IsNullOrEmpty(Model.RgsUrl) ? null : Uri.TryCreate(Model.RgsUrl, UriKind.Absolute, out var uri) ? uri: null;
return (config, true);
});
_successMessage = "Lightning configuration updated.";
}
catch (Exception e)
Expand Down

0 comments on commit b7368b4

Please sign in to comment.