Add more details to lnaddress not found errors, make sure lnaddress is only for BTC (#3067)

* Add more details to lnaddress not found errors, make sure lnaddress is only for BTC

* Update BTCPayServer/LNURL/LNURLController.cs

Co-authored-by: d11n <mail@dennisreimann.de>

* Update BTCPayServer/LNURL/LNURLController.cs

Co-authored-by: d11n <mail@dennisreimann.de>

* Update BTCPayServer/LNURL/LNURLController.cs

Co-authored-by: d11n <mail@dennisreimann.de>

Co-authored-by: d11n <mail@dennisreimann.de>
This commit is contained in:
Nicolas Dorier
2021-11-05 12:16:54 +09:00
committed by GitHub
parent 909fc71543
commit a47ba2df3c
2 changed files with 9 additions and 27 deletions

View File

@@ -3303,19 +3303,8 @@ namespace BTCPayServer.Tests
}
else if (result.ExpectedName == "ripio")
{
// This test is strange because ripio sometimes change the pairs it supports
try
{
Assert.Contains(exchangeRates.ByExchange[result.ExpectedName],
e => e.CurrencyPair == new CurrencyPair("BTC", "ARS") &&
e.BidAsk.Bid > 1.0m); // 1 BTC will always be more than 1 ARS
}
catch (XunitException)
{
Assert.Contains(exchangeRates.ByExchange[result.ExpectedName],
e => (e.CurrencyPair == new CurrencyPair("BTC", "USDC")
&& e.BidAsk.Bid > 1.0m)); // 1BTC will always be more than 1USD
}
// Ripio keeps changing their pair, so anything is fine...
Assert.NotEmpty(exchangeRates.ByExchange[result.ExpectedName]);
}
else if (result.ExpectedName == "cryptomarket")
{