Skip to content

Add getTransactionsByTxID() and getTransactionsByWitnessID()#11

Draft
Sjors wants to merge 2 commits into2140-dev:masterfrom
Sjors:2026/02/gettransactions
Draft

Add getTransactionsByTxID() and getTransactionsByWitnessID()#11
Sjors wants to merge 2 commits into2140-dev:masterfrom
Sjors:2026/02/gettransactions

Conversation

@Sjors
Copy link
Collaborator

@Sjors Sjors commented Mar 5, 2026

This adds getTransactionsByTxID() and getTransactionsByWitnessID() which are introduced by bitcoin/bitcoin#34020.

To be merged after:

@Sjors Sjors force-pushed the 2026/02/gettransactions branch 2 times, most recently from 210007c to b15d4e9 Compare March 5, 2026 18:02
@Sjors
Copy link
Collaborator Author

Sjors commented Mar 5, 2026

@rustaceanrob can you trigger a CI run?

@Sjors Sjors force-pushed the 2026/02/gettransactions branch from b15d4e9 to c89092d Compare March 5, 2026 18:54
@Sjors
Copy link
Collaborator Author

Sjors commented Mar 5, 2026

I'll probably make a separate PR for 864c113 after #9 lands to get that over with and keep this PR focussed.

@Sjors Sjors force-pushed the 2026/02/gettransactions branch from c89092d to 774dc9f Compare March 6, 2026 13:45
@Sjors
Copy link
Collaborator Author

Sjors commented Mar 6, 2026

Rebased after #9.

@rustaceanrob
Copy link
Collaborator

Needs rebase

@Sjors Sjors force-pushed the 2026/02/gettransactions branch from 774dc9f to 7107ace Compare March 10, 2026 14:30
@Sjors
Copy link
Collaborator Author

Sjors commented Mar 10, 2026

Rebased on top of #14 (and after #15).

@Sjors Sjors force-pushed the 2026/02/gettransactions branch from 7107ace to fac93e4 Compare March 11, 2026 12:21
Sjors added 2 commits March 11, 2026 16:40
Add Mining interface methods getTransactionsByTxID and
getTransactionsByWitnessID to the capnp schema.

Expand integration tests to call both methods with empty inputs, a real
mempool transaction id and witness id, and unknown ids, verifying serialized
transaction bytes for hits and empty results for misses.
@Sjors Sjors force-pushed the 2026/02/gettransactions branch from fac93e4 to c98e1b9 Compare March 11, 2026 15:40
@Sjors
Copy link
Collaborator Author

Sjors commented Mar 11, 2026

Rebased now that #14 landed.

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.

2 participants