mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 09:29:10 +01:00
Rounding TotalSeconds expiry so it doesn't break invoice creation
This commit is contained in:
parent
d1fb51b412
commit
2bd1238668
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ namespace BTCPayServer.Payments.Lightning.Lnd
|
|||
CancellationToken cancellation = default(CancellationToken))
|
||||
{
|
||||
var strAmount = ConvertInv.ToString(amount.ToUnit(LightMoneyUnit.Satoshi));
|
||||
var strExpiry = ConvertInv.ToString(expiry.TotalSeconds);
|
||||
var strExpiry = ConvertInv.ToString(Math.Round(expiry.TotalSeconds, 0));
|
||||
// lnd requires numbers sent as strings. don't ask
|
||||
var resp = await _rpcClient.AddInvoiceAsync(new LnrpcInvoice
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue