Skip to content

refactor(testenv): move TxTemplate from chain tests to bdk_testenv - #2353

Closed
luhrhenz wants to merge 1 commit into
bitcoindevkit:masterfrom
luhrhenz:refactor/move-tx-template-to-testenv
Closed

luhrhenz wants to merge 1 commit into
bitcoindevkit:masterfrom
luhrhenz:refactor/move-tx-template-to-testenv

Conversation

@luhrhenz

@luhrhenz luhrhenz commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move TxTemplate, TxInTemplate, TxOutTemplate, and TxTemplateEnv from crates/chain/tests/common/tx_template.rs into crates/testenv/src/tx_template.rs behind a miniscript feature gate.
  • Re-export from chain/tests/common/mod.rs so existing chain tests continue working without changes.
  • This is item 1 from Move TxTemplate to bdk_testenv and make it better #1936. Follow-up items (Cow fields, benchmark integration, helper methods) can be addressed in subsequent PRs.

Ref #1936

Move TxTemplate, TxInTemplate, TxOutTemplate, and TxTemplateEnv into
bdk_testenv behind a miniscript feature gate so they can be reused by
benchmarks and other crates' tests.

Ref bitcoindevkit#1936

@evanlinjin evanlinjin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced by #2177

@evanlinjin evanlinjin closed this Oct 19, 2026
@github-project-automation github-project-automation Bot moved this from Triage to Done in BDK Chain Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants