Skip to content

refactor(tests): move TxTemplate from chain to testenv#2177

Open
tvpeter wants to merge 4 commits intobitcoindevkit:masterfrom
tvpeter:refactor/mv-txtemplate-to-testenv
Open

refactor(tests): move TxTemplate from chain to testenv#2177
tvpeter wants to merge 4 commits intobitcoindevkit:masterfrom
tvpeter:refactor/mv-txtemplate-to-testenv

Conversation

@tvpeter
Copy link
Copy Markdown
Collaborator

@tvpeter tvpeter commented Apr 15, 2026

Description

This PR moves the TxTemplate from the chain crate into the testenv. It also updates the TxTemplate to use the Cow smart pointer, adds method implementations to TxTemplate, and migrates tests to the builder API.

This PR addresses the first and second todos on #1936.

Changelog notice

  • moved TxTemplate from chain to testenv
  • added builder API methods to TxTemplate

Checklists

All Submissions:

tvpeter added 4 commits April 10, 2026 21:50
- move tx_template from chain to testenv
- update imports from chain/common/ to bdk_testenv
/tx_template/
-update TxTemplate struct to use Cow pointer
- add utility methods to TxTemplate
- update test_tx_graph and test_tx_graph_conflicts
to use builder API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant