Fix expiry greater than maxExpiry
This commit is contained in:
parent
6c111501ec
commit
b4a8adcb9a
@ -89,7 +89,7 @@ func (lnd *LndClient) CreateInvoice(pubkey string, msats int) (*Invoice, error)
|
||||
paymentRequest, err := lnd.Invoices.AddHoldInvoice(context.TODO(), &invoicesrpc.AddInvoiceData{
|
||||
Hash: &hash,
|
||||
Value: lnwire.MilliSatoshi(msats),
|
||||
Expiry: int64(expiry),
|
||||
Expiry: int64(expiry / time.Millisecond),
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user