feat(lightning): buying inbound liquidity is on, on mainnet

GroupLightningRollout.LIQUIDITY_ENABLED is true, by decision, ahead of the plan's own Phase 0 check
on mainnet: ACINQ's LSP has not yet been seen to accept a splice whose funding key from us does not
change, so the first purchase there is that check. If it refuses, the splice aborts before anything is
signed into it and the purchase is reported failed. A purchase is bounded meanwhile by the mainnet
channel cap, the fee cap the group signs, and every co-signer's checks. The wallet screen now shows Add
liquidity, and the operator's node buys what the group authorises.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-01 13:09:42 +02:00
1 parent 67351eeaa5
commit 4f1b4a4384
3 files changed
+10 -6

No files matched your search

@@ -40,10 +40,14 @@ object GroupLightningRollout {
/**
* Whether a member may ask the group to buy inbound liquidity, and the operator's node buys it
* (`docs/group-lightning-liquidity.md`). Co-signers check a purchase whether or not it is on, so a
* group whose devices all run this build is ready when it lifts.
* (`docs/group-lightning-liquidity.md`). Co-signers check a purchase whether or not it is on.
*
* On, on mainnet, by decision, ahead of the plan's Phase 0 mainnet check: ACINQ's LSP has not yet
* been seen to accept a splice whose funding key from us does not change. If it refuses, the splice
* aborts before anything is signed into it, and the purchase is reported as failed. What bounds a
* purchase meanwhile is [MAINNET_CHANNEL_CAP], the fee cap the group signs, and every co-signer's checks.
*/
const val LIQUIDITY_ENABLED: Boolean = false
const val LIQUIDITY_ENABLED: Boolean = true
/** The most a channel on [chain] may hold, or null where there is no cap. */
fun channelCapFor(chain: Chain): Satoshi? = MAINNET_CHANNEL_CAP.takeIf { chain.isMainnet() }