Lightning: Create the equivalent of "delinvoice" for payments

Created on 7 Oct 2018  路  5Comments  路  Source: ElementsProject/lightning

As far as I know, there isn't a method for deleting failed or completed payments, like there is for invoices (delinvoice). The aim is to reduce the output of

lightning-cli listpays
good first issue

Most helpful comment

Tested it and it works. Thanks to all involved but in particular @vincenzopalazzo!

All 5 comments

I think this can be marked good first issue ?

Now, I delete all payments via:

sqlite3 -header -line lightningd.sqlite3 'DELETE FROM payments'
sqlite3 -header -line lightningd.sqlite3 'DELETE FROM invoices'

in .lightning/bitcoin

@cdecker Maybe this Issue can be close by this PR https://github.com/ElementsProject/lightning/pull/3899

Definitely, thanks for looking this us @vincenzopalazzo

Tested it and it works. Thanks to all involved but in particular @vincenzopalazzo!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndiMacTen picture AndiMacTen  路  3Comments

ZmnSCPxj picture ZmnSCPxj  路  4Comments

agilob picture agilob  路  4Comments

willcl-ark picture willcl-ark  路  4Comments

rustyrussell picture rustyrussell  路  4Comments