Skip to content

feat(ddk-manager): add DDK_ALLOW_UNCONFIRMED_SPLICE env var for 0-conf splice#155

Closed
matthewjablack wants to merge 1 commit into
bennyhodl:masterfrom
matthewjablack:feat/allow-unconfirmed-splice
Closed

feat(ddk-manager): add DDK_ALLOW_UNCONFIRMED_SPLICE env var for 0-conf splice#155
matthewjablack wants to merge 1 commit into
bennyhodl:masterfrom
matthewjablack:feat/allow-unconfirmed-splice

Conversation

@matthewjablack
Copy link
Copy Markdown
Contributor

Summary

  • Add DDK_ALLOW_UNCONFIRMED_SPLICE environment variable to allow signing DLC inputs from Signed (unconfirmed) contracts
  • When enabled, 0-conf splice operations can proceed without waiting for on-chain confirmation
  • Default behavior unchanged - only Confirmed contracts allowed without the env var

Use Case

On testnets (e.g., testnet4), waiting for confirmations slows down development and testing. This env var allows deployments to opt-in to 0-conf DLC input signing for faster iteration.

Usage

DDK_ALLOW_UNCONFIRMED_SPLICE=true

Changes

  • ddk-manager/src/dlc_input.rs: Added allow_unconfirmed_splice() helper and updated get_signature_for_dlc_input to accept Contract::Signed when env var is set

…f splice

Allow signing DLC inputs from Signed (unconfirmed) contracts when
DDK_ALLOW_UNCONFIRMED_SPLICE=true is set. This enables 0-conf splice
operations on testnets without waiting for on-chain confirmation.

By default, the behavior is unchanged - only Confirmed contracts can
be used for DLC input signing. The env var opt-in allows testnet
deployments to skip the confirmation wait for faster iteration.
@rorp
Copy link
Copy Markdown
Contributor

rorp commented Apr 6, 2026

Allowing 0-conf DLC input signing is not a harmless dev convenience, it changes the trust model. A misconfigured production deployment could silently set this. Consider:

  • Logging a prominent warning when allow_unconfirmed_splice() returns true
  • Or requiring it to be set at build time / via a feature flag rather than runtime env

@bennyhodl
Copy link
Copy Markdown
Owner

Closing this.

If this feature is wanted, should just set NB_CONFIRMATIONS to 0

@bennyhodl bennyhodl closed this Apr 14, 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