Skip to content

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

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

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant