Skip to content

Added optional SPARK_MULTIPLICITY env var support#9

Merged
arcbtc merged 1 commit intolnbits:mainfrom
blackcoffeexbt:feat/add_spark_multiplication_option
Mar 19, 2026
Merged

Added optional SPARK_MULTIPLICITY env var support#9
arcbtc merged 1 commit intolnbits:mainfrom
blackcoffeexbt:feat/add_spark_multiplication_option

Conversation

@blackcoffeexbt
Copy link
Copy Markdown
Contributor

Spark optimises leaf sizes based on a "multiplicity" setting. This setting affects payment speed as payments that need leaf swaps will involve a Spark Payment Provider for leaf swaps before a payment is made.

Adding this env var adds a sensible default of 3 and allows the setting to be adjusted depending on use case.

Read more here - https://docs.spark.money/api-reference/wallet/initialize#leaf-optimization

This PR is by me, not a bot 😛

@arcbtc arcbtc merged commit 4995cca into lnbits:main Mar 19, 2026
15 checks passed
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