core-lightning/plugins
niftynei ff0a63a0d7 valgrind-fix: patch valgrind error on log statement in pay plugin
The htlc_budget only exists iff the hint is a 'local' one; we were
failing to write to the htlc_budget field for non-local cases.

To avoid this, we make `local` into a struct that contains the fields
that pertain to local-only payments (in this case, `htlc_budget`).

Valgrind error file: valgrind-errors.1813487
==1813487== Conditional jump or move depends on uninitialised value(s)
==1813487==    at 0x4A9C958: __vfprintf_internal (vfprintf-internal.c:1687)
==1813487==    by 0x4AB0F99: __vsnprintf_internal (vsnprintf.c:114)
==1813487==    by 0x1D2EF9: do_vfmt (str.c:66)
==1813487==    by 0x1D3006: tal_vfmt_ (str.c:92)
==1813487==    by 0x11A60A: paymod_log (libplugin-pay.c:167)
==1813487==    by 0x11B749: payment_chanhints_apply_route (libplugin-pay.c:534)
==1813487==    by 0x11EB36: payment_compute_onion_payloads (libplugin-pay.c:1707)
==1813487==    by 0x12000F: payment_continue (libplugin-pay.c:2135)
==1813487==    by 0x1245B9: adaptive_splitter_cb (libplugin-pay.c:3800)
==1813487==    by 0x11FFB6: payment_continue (libplugin-pay.c:2123)
==1813487==    by 0x1206BC: retry_step_cb (libplugin-pay.c:2301)
==1813487==    by 0x11FFB6: payment_continue (libplugin-pay.c:2123)
==1813487==
{
   <insert_a_suppression_name_here>
   Memcheck:Cond
   fun:__vfprintf_internal
   fun:__vsnprintf_internal
   fun:do_vfmt
   fun:tal_vfmt_
   fun:paymod_log
   fun:payment_chanhints_apply_route
   fun:payment_compute_onion_payloads
   fun:payment_continue
   fun:adaptive_splitter_cb
   fun:payment_continue
   fun:retry_step_cb
[sesh] 0:[tmux]*Z

Suggested-By: @nothingmuch
2023-02-02 18:08:27 -06:00
..
bkpr common/bolt11: const cleanup, fix parsing errors. 2023-01-25 13:59:34 -06:00
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 openingd: Add reserve to fundchannel and multifundchannel 2022-09-21 11:25:47 +02:00
src cln-plugin: Re-export anyhow::anyhow macro 2022-12-24 11:32:22 +01:00
test common/gossip_store: clean up header. 2023-01-30 15:15:41 -06:00
.gitignore bookkeep: first commit, stub of new plugin 2022-07-28 12:08:18 +09:30
autoclean.c autoclean: fix uncleaned stats when we don't clean due to being too new. 2022-12-06 10:42:05 +01: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 common: clean up json routine locations. 2022-07-15 12:24:00 -05:00
commando.c plugins/command: ensure htables are always tal objects. 2023-01-12 11:44:10 +10:30
fetchinvoice.c plugins: update to match latest offers text. 2023-01-30 13:24:29 +10:30
funder.c funder: cleanup datastore on state-change/channel failure 2022-10-20 13:42:41 +02:00
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 hsmd: add hsmd_preapprove_keysend and check_preapprovekeysend pay modifier 2023-01-26 21:10:15 -06:00
libplugin-pay.c valgrind-fix: patch valgrind error on log statement in pay plugin 2023-02-02 18:08:27 -06:00
libplugin-pay.h valgrind-fix: patch valgrind error on log statement in pay plugin 2023-02-02 18:08:27 -06:00
libplugin.c plugins/topology: use listpeerchannels. 2023-01-13 10:42:42 +10:30
libplugin.h plugins: use listpeerchannels instead of listpeers. 2023-01-13 10:42:42 +10:30
Makefile plugins/sql: add bkpr-listaccountevents and bkpr-listincome support. 2023-01-30 15:15:41 -06:00
offers.c decode: fix handling of blinded_payinfo. 2023-01-30 13:24:29 +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 plugins: update to match latest offers text. 2023-01-30 13:24:29 +10:30
offers_invreq_hook.h offers: create a real blinded path, if necessary. 2022-11-09 15:08:03 +01:00
offers_offer.c plugins: update to match latest offers text. 2023-01-30 13:24:29 +10:30
offers_offer.h lightningd: re-add 'offerout' functionality, as 'invoicerequest'. 2022-11-09 15:08:03 +01:00
pay.c hsmd: add hsmd_preapprove_invoice and check_preapproveinvoice pay modifier 2023-01-26 21:10:15 -06:00
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
sql.c plugins/sql: fix foreign keys. 2023-02-02 14:56:04 -06:00
topology.c plugins/topology: add direction field to listchannels. 2023-01-30 15:15:41 -06:00
txprepare.c memleak: simplify API. 2022-09-19 11:34:42 +09: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).