Skip to content

splice-script: Add more diagnostics and logs - #8962

Open
ddustin wants to merge 1 commit into
ElementsProject:masterfrom
ddustin:ddustin/splice_script_diagnostics
Open

splice-script: Add more diagnostics and logs#8962
ddustin wants to merge 1 commit into
ElementsProject:masterfrom
ddustin:ddustin/splice_script_diagnostics

Conversation

@ddustin

@ddustin ddustin commented Mar 22, 2026

Copy link
Copy Markdown
Collaborator

Increasing verbosity to make more clear what splice script is doing.

@ddustin
ddustin force-pushed the ddustin/splice_script_diagnostics branch 2 times, most recently from 546636d to 5aea3ed Compare March 22, 2026 15:19
Increasing verbosity to make more clear what splice script is doing.

Changelog-None
@ddustin
ddustin force-pushed the ddustin/splice_script_diagnostics branch from 5aea3ed to 98e5655 Compare March 22, 2026 22:02
Comment thread plugins/spender/splice.c
/* First add all sats going into general fund */
for (size_t i = 0; i < tal_count(splice_cmd->actions); i++) {
action = splice_cmd->actions[i];
if (amount_sat_is_zero(action->out_sat) && !action->out_ppm)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This continue skips the pays_fee block whenever out_sat == 0 && out_ppm == 0 - which is exactly the state of a not yet funded wallet input that is supposed to pay the fee (the case handle_fee_and_ppm triggers this function for). sub_fee_from_general stays true by default instead of being set false, so the fee gets deducted from the general pool instead of being tracked against the paying action

Comment thread plugins/spender/splice.c
" in wallets and %d out wallets",
in_wallet_count, out_wallet_count));

if (fee_count > 1)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fee_count never incremented anywhere. Is this a dead code?

@madelinevibes madelinevibes added this to the v26.09 milestone Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants