Skip to content

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented Dec 22, 2025

This PR contains commits on top of #3217 to fix my comments made on that PR:

  • the first commit just changes codecs to use a case class instead of a case object and clean-up a few places
  • the second commit ensures that we're doing a shadow deployment and not failing payments because of jamming checks, along with a few clean-ups to minimize the diff with master
  • the third commit adds release notes

More details in each commit message.

We update codecs to use `case class` instead of `case object`, like we
do for the similar `require_confirmed_inputs` TLV, which lets us use the
helper functions on TLV streams and provide better consistency. We add
documentation to the acountability TLV fields.

We also simplify the trait hierarchy in `PaymentOnion.scala` by removing
unnecessary additions.
We refactor the following parts of the payment flow:

- when fetching confidence score, the downstream node is always known,
  we don't need to use an `Option` in `GetConfidence`
- we remove the restrictions that require accountability for on-the-fly
  funding, we don't want to negatively impact wallets yet
- we never fail HTLCs based on accountability / incoming confidence, we
  only log that we would have failed them to collect data, it's way too
  early to actually enforce any of those restrictions
- we reorder the `accountability` parameter in various functions, to
  make it appear before optional, less important parameters (for example
  custom TLVs)
- we revert a bunch of small, unnecessary changes to minimize the diff
  with `master`

We also add documentation and comments to help readers.
@t-bast t-bast requested a review from thomash-acinq December 22, 2025 10:18
@t-bast t-bast mentioned this pull request Dec 22, 2025
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.

2 participants