mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 15:00:34 +01:00
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 |
||
---|---|---|
.. | ||
bkpr | ||
examples | ||
grpc-plugin | ||
spender | ||
src | ||
test | ||
.gitignore | ||
autoclean.c | ||
bcli.c | ||
Cargo.toml | ||
chanbackup.c | ||
commando.c | ||
fetchinvoice.c | ||
funder.c | ||
funder_policy.c | ||
funder_policy.h | ||
keysend.c | ||
libplugin-pay.c | ||
libplugin-pay.h | ||
libplugin.c | ||
libplugin.h | ||
Makefile | ||
offers.c | ||
offers.h | ||
offers_inv_hook.c | ||
offers_inv_hook.h | ||
offers_invreq_hook.c | ||
offers_invreq_hook.h | ||
offers_offer.c | ||
offers_offer.h | ||
pay.c | ||
README.md | ||
sql.c | ||
topology.c | ||
txprepare.c |
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).