mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
rpcserver+invoices: add support for deleting canceled invoice
Adds server-side RPC functionality to delete canceled invoice, support deleting specific canceled invoice from the database.
This commit is contained in:
@@ -14,6 +14,9 @@ var (
|
||||
// canceled.
|
||||
ErrInvoiceAlreadyCanceled = errors.New("invoice already canceled")
|
||||
|
||||
// ErrInvoiceNotCanceled is returned when the invoice is not canceled.
|
||||
ErrInvoiceNotCanceled = errors.New("invoice not canceled")
|
||||
|
||||
// ErrInvoiceAlreadyAccepted is returned when the invoice is already
|
||||
// accepted.
|
||||
ErrInvoiceAlreadyAccepted = errors.New("invoice already accepted")
|
||||
@@ -33,6 +36,10 @@ var (
|
||||
// match the invoice hash.
|
||||
ErrInvoicePreimageMismatch = errors.New("preimage does not match")
|
||||
|
||||
// ErrNoInvoiceHash is returned when an invoice hash is expected, and
|
||||
// none is provided.
|
||||
ErrNoInvoiceHash = errors.New("invoice hash must be provided")
|
||||
|
||||
// ErrHTLCPreimageMissing is returned when trying to accept/settle an
|
||||
// AMP HTLC but the HTLC-level preimage has not been set.
|
||||
ErrHTLCPreimageMissing = errors.New("AMP htlc missing preimage")
|
||||
|
Reference in New Issue
Block a user