core-lightning/plugins
Vincenzo Palazzo 3424f70585 plugin: autoclean: cleanup the forwards with localfailed
While we are cleaning up the list forwards with the autoclean plugin we are
not taking into count the forward's payments with the status set to
`local_failed`. In this case, the forwards have no resolved
time because it was not resolved by us due to some local error.

So, this commit is fixing the auto clean plugin by allowing to delete
of the forwards with status set to local_failed by taking into count
the received_time, with the assumption that the received_time, in this case,
is equal to the resolved time (?)

Reported-by: @denis2342
Link: https://github.com/ElementsProject/lightning/issues/6058
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Changelog-Fixed: plugin: autoclean: considerer the forwards with status
set to `local_failed`.
2023-03-23 08:18:27 +00:00
..
bkpr cleanup: rename json_add_amount_msat_only to json_add_amount_msat 2023-03-18 15:55:49 +10:30
examples pytest: Add test for optional options in cln-plugin 2022-11-03 11:28:22 +01:00
grpc-plugin rs: Bump crate versions for publication 2022-12-22 15:42:12 +01:00
spender Update libwally to 0.8.8, support PSBTv2 2023-03-23 16:10:55 +10:30
src cln_plugin: add shutdown() method to Plugin 2023-03-18 11:52:29 +00:00
test cleanup: rename json_add_amount_msat_only to json_add_amount_msat 2023-03-18 15:55:49 +10:30
.gitignore ignore sql binary plugin 2023-02-08 14:38:58 -06:00
autoclean.c plugin: autoclean: cleanup the forwards with localfailed 2023-03-23 08:18:27 +00:00
bcli.c libplugin: mark the cmd notleak() whenever command_still_pending() called. 2022-09-19 11:34:42 +09:30
Cargo.toml rs: Add cln-plugin metadata 2023-01-02 14:33:02 +01:00
chanbackup.c chanbackup: even if they enable experimental-peer-storage, check peers 2023-03-08 18:46:21 -06:00
commando.c commando: don't try putting an integer as the 'string' parameter to "datastore". 2023-02-11 12:22:40 -06:00
fetchinvoice.c plugin: fetchinvoice: set the quantity in invreq 2023-03-20 20:25:02 +00:00
funder.c Update libwally to 0.8.8, support PSBTv2 2023-03-23 16:10:55 +10:30
funder_policy.c df: pass lease data back to funder for rbfs 2022-10-20 13:42:41 +02:00
funder_policy.h df: pass lease data back to funder for rbfs 2022-10-20 13:42:41 +02:00
keysend.c cleanup: rename json_add_amount_msat_only to json_add_amount_msat 2023-03-18 15:55:49 +10:30
libplugin-pay.c cleanup: rename json_add_amount_msat_only to json_add_amount_msat 2023-03-18 15:55:49 +10:30
libplugin-pay.h valgrind-fix: patch valgrind error on log statement in pay plugin 2023-02-02 18:08:27 -06:00
libplugin.c libplugin: Expose the jsonrpc_request_sync method 2023-02-28 15:00:44 -06:00
libplugin.h libplugin: Expose the jsonrpc_request_sync method 2023-02-28 15:00:44 -06:00
Makefile Makefile: don't try to build sql plugin if there's no sqlite3 support. 2023-02-06 09:20:28 +01:00
offers.c cleanup: rename json_add_amount_msat_only to json_add_amount_msat 2023-03-18 15:55:49 +10:30
offers.h common: update to latest onion message spec. 2022-10-26 11:29:06 +10:30
offers_inv_hook.c lightningd: re-add 'offerout' functionality, as 'invoicerequest'. 2022-11-09 15:08:03 +01:00
offers_inv_hook.h lightningd: re-add 'offerout' functionality, as 'invoicerequest'. 2022-11-09 15:08:03 +01:00
offers_invreq_hook.c offers: fix pay where we are using deprecated apis. 2023-02-03 16:59:51 +01:00
offers_invreq_hook.h offers: create a real blinded path, if necessary. 2022-11-09 15:08:03 +01:00
offers_offer.c offers: enable label for invoicerequest 2023-03-09 06:56:06 -06:00
offers_offer.h lightningd: re-add 'offerout' functionality, as 'invoicerequest'. 2022-11-09 15:08:03 +01:00
pay.c cleanup: rename json_add_amount_msat_only to json_add_amount_msat 2023-03-18 15:55:49 +10:30
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
sql.c sql: fix nodes table update. 2023-03-06 16:14:28 -06:00
topology.c cleanup: rename json_add_amount_msat_only to json_add_amount_msat 2023-03-18 15:55:49 +10:30
txprepare.c Update libwally to 0.8.8, support PSBTv2 2023-03-23 16:10:55 +10:30

Plugin Directory

Any file in this directory which is executable and whose name only consists of alphanumeric characters, space, '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).