Skip to content

askrene: deprecate auto.no_mpp_support layer in favor of maxparts=1#8980

Open
vincenzopalazzo wants to merge 1 commit intoElementsProject:masterfrom
vincenzopalazzo:deprecate-auto-no-mpp-support
Open

askrene: deprecate auto.no_mpp_support layer in favor of maxparts=1#8980
vincenzopalazzo wants to merge 1 commit intoElementsProject:masterfrom
vincenzopalazzo:deprecate-auto-no-mpp-support

Conversation

@vincenzopalazzo
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo commented Mar 25, 2026

Summary

  • Deprecate the auto.no_mpp_support magic layer in askrene's getroutes using command_deprecated_in_ok (v25.09 -> v26.08)
  • Update xpay to use maxparts=1 instead of adding the auto.no_mpp_support layer when MPP is disabled
  • Update all tests to use maxparts=1 instead of the deprecated layer
  • Update documentation to note the deprecation

Now that getroutes has a maxparts parameter, callers can simply set maxparts=1 to force single-path routing instead of using the magic layer name.

Fixes #8871

Test plan

  • CI passes
  • test_getroutes_single_path passes with maxparts=1
  • test_excessive_fee_cost passes with maxparts=1
  • test_impossible_payment passes with maxparts=1
  • xpay no-MPP payments still work via maxparts=1

Now that getroutes has a maxparts parameter, the auto.no_mpp_support
magic layer is no longer needed. Setting maxparts=1 achieves the same
single-path routing behavior.

- Deprecate auto.no_mpp_support in param_layer_names (v25.09 -> v26.08)
- Update xpay to use maxparts=1 instead of auto.no_mpp_support layer
- Update tests to use maxparts=1
- Update documentation to note the deprecation

Fixes ElementsProject#8871

Changelog-Deprecated: JSON-RPC: `getroutes` `auto.no_mpp_support` layer: use `maxparts=1` instead.
@vincenzopalazzo vincenzopalazzo force-pushed the deprecate-auto-no-mpp-support branch from a6a6eb9 to b40f743 Compare March 25, 2026 13:52
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.

Deprecate auto.no_mpp layer in askrene

2 participants