Skip to content

Add TxCollection#29

Draft
Sjors wants to merge 3 commits into
2140-dev:masterfrom
Sjors:2026/07/tx-collection
Draft

Add TxCollection#29
Sjors wants to merge 3 commits into
2140-dev:masterfrom
Sjors:2026/07/tx-collection

Conversation

@Sjors

@Sjors Sjors commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

This adds the TxCollection introduced by bitcoin/bitcoin#35671.

To be merged after:

Sjors added 3 commits July 8, 2026 08:47
Add Mining.collectTxs and the TxCollection capability to the capnp
schema. TxCollection.makeTemplate takes an optional coinbase; when
provided, Bitcoin Core validates the block with it instead of a
node-generated dummy coinbase.

Expand integration coverage to reject duplicate wtxids, observe missing
transaction positions, provide a client-supplied transaction with
addMissingTxs, build a template preserving the requested transaction
order, and validate client-provided coinbases (used verbatim when
valid; bad-cb-missing for a non-coinbase transaction; bad-cb-height
for a wrong-height coinbase).
@Sjors Sjors force-pushed the 2026/07/tx-collection branch from e42dd57 to 26d1aad Compare July 8, 2026 06:50
@Sjors

Sjors commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

Rebased after #11:

  • collectTxs() now uses @10

Sjors added a commit to Sjors/sv2-apps that referenced this pull request Jul 8, 2026
Point bitcoin_capnp_types_v32 at Sjors/bitcoin-capnp-types
2026/07/tx-collection (2140-dev/bitcoin-capnp-types#29), which adds the
capnp bindings for the TxCollection interface introduced by
bitcoin/bitcoin#35671.

Revert to the 2140-dev repository (or a crates.io release) once that PR
is merged.
Sjors added a commit to Sjors/sv2-apps that referenced this pull request Jul 8, 2026
Instead of stubbing the v32 binary, build Bitcoin Core from the
bitcoin/bitcoin#35671 (TxCollection) PR branch in the Integration
Tests workflow, with ccache to keep warm-cache runs fast. This follows
the approach used by 2140-dev/bitcoin-capnp-types#29.

Remove once an official Bitcoin Core release ships TxCollection.
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.

1 participant