test, bench: construct inputs/outputs declaratively in context-dependent cases #36606

Manually merged
alexanderwiederin merged 5 commits from transaction_utils-declarative into master 2026-10-29 14:27:02 +00:00 AGit
alexanderwiederin commented 2026-10-22 11:16:12 +00:00 (Migrated from github.com)

Part of https://github.com/bitcoin/bitcoin/issues/36692 (previously discussed in https://github.com/bitcoin/bitcoin/pull/35994): replace procedural, field-by-field construction of COutPoint, CTxIn and CTxOut in test code with constructor calls.

This PR covers cases that are context-dependent and need manual changes, independent of a scripted-diff for the trivial bulk:

  • test/util/transaction_utils: in BuildSpendingTransaction, the scriptWitness assignment has to be moved after vin is replaced, otherwise the witness is dropped.
  • test/util/mining: in CreateBlockChain, the coinbase input's fields were split by the output assignments, with comments that are now kept next to the constructor arguments.
  • sigopcount_tests: BuildTxs has the same witness ordering issue as BuildSpendingTransaction.
  • bench/ccoins_caching: The scriptSigs are built with << appends, and the second output was created by vout.resize(2) but never assigned, so it is kept as a null CTxOut{}.
  • transaction_tests: test_Get builds the same transaction as bench/ccoins_caching, with the same << appends and null second output.

This change is test- and bench-only and does not change the constructed transactions.

Notes for reviewers:

  • CTxIn has no witness constructor argument, so scriptWitness is assigned after vin is replaced.
  • BuildTxs is called repeatedly on the same transaction objects. Previously, resize(1) kept the existing inputs and only overwrote some of their fields; now they are replaced entirely. The fields that were left untouched by BuildTxs are never modified by the test, so the transactions are unchanged.
  • The null second output in ccoins_caching is copied from test_Get in transaction_tests and looks like an oversight. It is kept here to avoid behaviour changes.
Part of https://github.com/bitcoin/bitcoin/issues/36692 (previously discussed in https://github.com/bitcoin/bitcoin/pull/35994): replace procedural, field-by-field construction of `COutPoint`, `CTxIn` and `CTxOut` in test code with constructor calls. This PR covers cases that are context-dependent and need manual changes, independent of a scripted-diff for the trivial bulk: - `test/util/transaction_utils`: in `BuildSpendingTransaction`, the `scriptWitness` assignment has to be moved after `vin` is replaced, otherwise the witness is dropped. - `test/util/mining`: in `CreateBlockChain`, the coinbase input's fields were split by the output assignments, with comments that are now kept next to the constructor arguments. - `sigopcount_tests`: `BuildTxs` has the same witness ordering issue as `BuildSpendingTransaction`. - `bench/ccoins_caching`: The `scriptSig`s are built with `<<` appends, and the second output was created by `vout.resize(2)` but never assigned, so it is kept as a null `CTxOut{}`. - `transaction_tests`: `test_Get` builds the same transaction as `bench/ccoins_caching`, with the same `<<` appends and null second output. **This change is test- and bench-only and does not change the constructed transactions.** Notes for reviewers: - `CTxIn` has no witness constructor argument, so `scriptWitness` is assigned after `vin` is replaced. - `BuildTxs` is called repeatedly on the same transaction objects. Previously, `resize(1)` kept the existing inputs and only overwrote some of their fields; now they are replaced entirely. The fields that were left untouched by `BuildTxs` are never modified by the test, so the transactions are unchanged. - The null second output in `ccoins_caching` is copied from `test_Get` in `transaction_tests` and looks like an oversight. It is kept here to avoid behaviour changes.
DrahtBot commented 2026-10-22 11:16:22 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK maflcko, purpleKarrot

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #35569 (Encapsulation for CTransaction by purpleKarrot)
  • #35511 (RFC: consensus: Make CAmount a class by hodlinator)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36606 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36606.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36606#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [maflcko](https://github.com/bitcoin/bitcoin/pull/36606#issuecomment-6494824627), [purpleKarrot](https://github.com/bitcoin/bitcoin/pull/36606#issuecomment-6495390398) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#35569](https://github.com/bitcoin/bitcoin/pull/35569) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35569.svg"></sub> (Encapsulation for CTransaction by purpleKarrot) * [#35511](https://github.com/bitcoin/bitcoin/pull/35511) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35511.svg"></sub> (RFC: consensus: Make `CAmount` a class by hodlinator) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

I found no actionable issues in this static review.


Previous findings
Resolved findings
[Suggestion · resolved] Explain why the second output remains null

Before this change, resize(2) created a default second output, and only index 0 was assigned. CTxOut{} preserves that null output, but the reason is not apparent from the initializer. Please add a brief comment here and at the matching test_Get initializer explaining that this preserves the prior fixture, so the output is not mistaken for an accidental placeholder.

Location: src/bench/ccoins_caching.cpp:42 (head).

No longer considered actionable. First reported at 37681c15fcd3190a14f5f0f33962b5cc8ae1179a. Last checked at bdf58dd89cc2fe2f0be5ac63755e821661022be6. Both initializers still have a bare CTxOut{} with no comment. However, the source disproves the finding's premise: that the null output is a meaningful part of the fixture, and that mistaking it for an accidental placeholder would matter.

In the benchmark and in test_Get, the only thing that uses t1 is ValidateInputsStandardness. That function, and the CheckSigopsBIP54 it calls, read only tx.vin (through IsCoinBase) and the coin entries for those prevouts. They never read tx.vout. The second output therefore cannot affect the assertion in test_Get or the timed benchmark body. The PR description itself calls it a likely oversight that is kept only so the transaction stays byte-identical. A comment presenting it as a deliberate fixture element would be inaccurate, and reading it as an accidental leftover is correct.

unchanged is false because the CTxOut{} literal is new code in this PR (the base produced the same output implicitly through resize(2)). unchanged_since_report is false because the status is no longer still_present. No author reply addresses this finding.


Reviewed: bdf58dd89cc2 · Full review report · Previous reports

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:87bdde6e11c8200ebab55606962dbcbbed1f25d8bebf674c6c6e659db1fe52cc:8f5adaa231eb1aff4d179f52d5ea908b8cc3066455d0b32a1baa87e2b34c9f86 --> <!-- ralph-base:363d9e9d38154b7dced1767e996f8f18f391fcff --> <!-- ralph-head:bdf58dd89cc2fe2f0be5ac63755e821661022be6 --> <!-- ralph-case:6baf14c4e84309c80a8ef8432fe73265fc7567f520c7750929343193bdcdd9d0 --> I found no actionable issues in this static review. --- <details> <summary>Previous findings</summary> <details> <summary>Resolved findings</summary> <details> <summary>[Suggestion · resolved] Explain why the second output remains null</summary> Before this change, `resize(2)` created a default second output, and only index 0 was assigned. `CTxOut{}` preserves that null output, but the reason is not apparent from the initializer. Please add a brief comment here and at the matching `test_Get` initializer explaining that this preserves the prior fixture, so the output is not mistaken for an accidental placeholder. Location: [`src/bench/ccoins_caching.cpp:42`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/bdf58dd89cc2fe2f0be5ac63755e821661022be6/src/bench/ccoins_caching.cpp#L42>) (head). No longer considered actionable. First reported at `37681c15fcd3190a14f5f0f33962b5cc8ae1179a`. Last checked at `bdf58dd89cc2fe2f0be5ac63755e821661022be6`. Both initializers still have a bare `CTxOut{}` with no comment. However, the source disproves the finding's premise: that the null output is a meaningful part of the fixture, and that mistaking it for an accidental placeholder would matter. In the benchmark and in `test_Get`, the only thing that uses t1 is `ValidateInputsStandardness`. That function, and the `CheckSigopsBIP54` it calls, read only `tx.vin` (through `IsCoinBase`) and the coin entries for those prevouts. They never read `tx.vout`. The second output therefore cannot affect the assertion in `test_Get` or the timed benchmark body. The PR description itself calls it a likely oversight that is kept only so the transaction stays byte-identical. A comment presenting it as a deliberate fixture element would be inaccurate, and reading it as an accidental leftover is correct. `unchanged` is false because the `CTxOut{}` literal is new code in this PR (the base produced the same output implicitly through `resize(2)`). `unchanged_since_report` is false because the status is no longer `still_present`. No author reply addresses this finding. </details> </details> </details> <!-- Review tier: routine --> --- Reviewed: [`bdf58dd89cc2`](<https://git.fish.foo/bitcoin/bitcoin/commit/bdf58dd89cc2fe2f0be5ac63755e821661022be6>) · [Full review report](<https://review.fish.foo/traces/36606-bdf58dd89cc2fe2f0be5ac63755e821661022be6-1681-10.html>) · [Previous reports](<https://review.fish.foo/traces/36606/>)
maflcko commented 2026-10-22 11:43:31 +00:00 (Migrated from github.com)

Seems fine, but what is the great picture here:

  • How many further changes are required to reach the goal?
  • Should larger chunks be done, possibly limited to vin, then another commit for vout?
  • Can the changes be done with a scripted-diff? (Possibly a match on vin.resize(1) and then vin[0].<_> = <_>? Or would that be not worth it?)
  • ...
Seems fine, but what is the great picture here: * How many further changes are required to reach the goal? * Should larger chunks be done, possibly limited to `vin`, then another commit for `vout`? * Can the changes be done with a scripted-diff? (Possibly a match on `vin.resize(1)` and then `vin[0].<_> = <_>`? Or would that be not worth it?) * ...
alexanderwiederin commented 2026-10-22 12:20:09 +00:00 (Migrated from github.com)

Thanks for the feedback!

  • How many further changes are required to reach the goal?

Rough numbers: 593 lines assign individual fields via vin[...]/vout[...] across 50 files. The largest are: transaction_tests (122), miner_tests (90), script_p2sh_tests (72), mempool_tests (58) and bench/mempool_eviction (38).

  • Should larger chunks be done, possibly limited to vin, then another commit for vout?

Single commits per file seems more intuitive to me, but happy to take a different approach.

  • Can the changes be done with a scripted-diff? (Possibly a match on vin.resize(1) and then vin[0].<> = <>? Or would that be not worth it?)

The script would need to reorder fields into constructor arguments, fill in defaults, and handle << appends, and it can't preserve interleaved comments. I chose transaction_utils because it's where the mechanical rewrite in #35994 went wrong: BuildSpendingTransaction assigned scriptWitness before vin was replaced, which dropped the witness. That shows context matters, which is why I would do it manually.

What do you think?

Thanks for the feedback! > * How many further changes are required to reach the goal? Rough numbers: 593 lines assign individual fields via vin[...]/vout[...] across 50 files. The largest are: transaction_tests (122), miner_tests (90), script_p2sh_tests (72), mempool_tests (58) and bench/mempool_eviction (38). > * Should larger chunks be done, possibly limited to vin, then another commit for vout? Single commits per file seems more intuitive to me, but happy to take a different approach. > * Can the changes be done with a scripted-diff? (Possibly a match on vin.resize(1) and then vin[0].<_> = <_>? Or would that be not worth it?) The script would need to reorder fields into constructor arguments, fill in defaults, and handle `<<` appends, and it can't preserve interleaved comments. I chose `transaction_utils` because it's where the mechanical rewrite in #35994 went wrong: `BuildSpendingTransaction` assigned `scriptWitness` before `vin` was replaced, which dropped the witness. That shows context matters, which is why I would do it manually. What do you think?
maflcko commented 2026-10-22 12:37:01 +00:00 (Migrated from github.com)

I am mostly thinking that 50 pulls/commits for this won't scale/review. My preference would be to just handle the trivial bulk of the changes with a trivial scripted-diff (that is, excluding the transformations that have lines in-between).

Then, the tedious transformations can be done manually later, hopefully being a small amount of line changes.

Happy to create an alternative pull to show it.

I am mostly thinking that 50 pulls/commits for this won't scale/review. My preference would be to just handle the trivial bulk of the changes with a trivial scripted-diff (that is, excluding the transformations that have lines in-between). Then, the tedious transformations can be done manually later, hopefully being a small amount of line changes. Happy to create an alternative pull to show it.
alexanderwiederin commented 2026-10-22 12:44:03 +00:00 (Migrated from github.com)

Sounds good.

Sounds good.
alexanderwiederin commented 2026-10-23 14:20:53 +00:00 (Migrated from github.com)

@maflcko I've added four more commits covering cases that need manual work regardless of the scripted-diff.

I've marked this ready for review, since these are independent of the trivial bulk. Happy to rebase on top of your change if that lands first.

@maflcko I've added four more commits covering cases that need manual work regardless of the scripted-diff. I've marked this ready for review, since these are independent of the trivial bulk. Happy to rebase on top of your change if that lands first.
purpleKarrot commented 2026-10-26 09:02:49 +00:00 (Migrated from github.com)

This PR is a prime example of why I think Core needs a different development process, where a plan is decided before work starts. Assuming we had agreed on the plan that bitcoin's vocabulary types shall be made immutable. Then the review of this PR would be trivial:

  • Does the PR refer to an agreed plan? Check.
  • Is the PR a step in the right direction towards the goal laid out in the plan (no matter how small)? Check.
  • Does the PR preserve existing behavior/contracts (modulo changes that the plan demands)? Check.
  • Bonus points: It has less lines of code in total compared to the existing code.

ACK 4da6b9af11

We need to reverse the approach where people are discouraged from opening PRs and encouraged to build a reputation through making code reviews. I know that reviews in the current process are a bottleneck, but the assumption that we can solve it with more reviewers is naive. Imagine a carpentry shop where apprentices watch the master at work and are supposed to weigh in with comments.

We need to agree on a plan and then let people work on it in small increments. Such increments are easy to review (example above) and should allow timely integration, which gives a motivating boost to continue and may attract more developers. This process scales way better than opening PRs containing hundreds of commits or offering contributors an "alternative pull".

This PR is a prime example of why I think Core needs a different development process, where a plan is decided before work starts. Assuming we had agreed on the plan that bitcoin's vocabulary types shall be made immutable. Then the review of this PR would be trivial: - Does the PR refer to an agreed plan? Check. - Is the PR a step in the right direction towards the goal laid out in the plan (no matter how small)? Check. - Does the PR preserve existing behavior/contracts (modulo changes that the plan demands)? Check. - Bonus points: It has less lines of code in total compared to the existing code. ACK 4da6b9af11634f01a72098ca2d0e3e63fdf2b210 We need to reverse the approach where people are discouraged from opening PRs and encouraged to build a reputation through making code reviews. I know that reviews in the current process are a bottleneck, but the assumption that we can solve it with more reviewers is naive. Imagine a carpentry shop where apprentices watch the master at work and are supposed to weigh in with comments. We need to agree on a plan and then let people work on it in small increments. Such increments are easy to review (example above) and should allow timely integration, which gives a motivating boost to continue and may attract more developers. This process scales way better than opening PRs containing hundreds of commits or offering contributors an "alternative pull".
maflcko (Migrated from github.com) reviewed 2026-10-28 10:46:18 +00:00
maflcko (Migrated from github.com) commented 2026-10-28 10:46:19 +00:00
    t1.vout = {CTxOut{90 * COIN, CScript() << OP_1}, CTxOut{},};

nit: I find this harder to read. I think all vector assignments here should have an init-list with a trailing comma (even for N=1). Previously, it was easy to see there are two outputs, now one has to manually parse this line and count the commas. Also, appending more elements in the future is easier with line-broken init-lists.

```suggestion t1.vout = {CTxOut{90 * COIN, CScript() << OP_1}, CTxOut{},}; ``` nit: I find this harder to read. I think all vector assignments here should have an init-list with a trailing comma (even for N=1). Previously, it was easy to see there are two outputs, now one has to manually parse this line and count the commas. Also, appending more elements in the future is easier with line-broken init-lists.
maflcko commented 2026-10-28 10:46:23 +00:00 (Migrated from github.com)

Ok, fair enough. I took a look at a scripted-diff, but I couldn't find a common pattern. (There is << vs =, skipped fields, random orders, etc) So manual review will be needed anyway on a case-by-case basis.

Ok, fair enough. I took a look at a scripted-diff, but I couldn't find a common pattern. (There is `<<` vs `=`, skipped fields, random orders, etc) So manual review will be needed anyway on a case-by-case basis.
alexanderwiederin (Migrated from github.com) reviewed 2026-10-28 12:36:55 +00:00
alexanderwiederin (Migrated from github.com) commented 2026-10-28 12:36:55 +00:00

Done - thanks!

Done - thanks!
alexanderwiederin commented 2026-10-28 12:39:54 +00:00 (Migrated from github.com)

Ok, fair enough. I took a look at a scripted-diff, but I couldn't find a common pattern. (There is << vs =, skipped fields, random orders, etc) So manual review will be needed anyway on a case-by-case basis.

Thanks for taking a look. For the remaining cases I’ll group several files per PR. Let me know if you have a preference for how to group them.

> Ok, fair enough. I took a look at a scripted-diff, but I couldn't find a common pattern. (There is `<<` vs `=`, skipped fields, random orders, etc) So manual review will be needed anyway on a case-by-case basis. Thanks for taking a look. For the remaining cases I’ll group several files per PR. Let me know if you have a preference for how to group them.
maflcko (Migrated from github.com) approved these changes 2026-10-29 09:16:58 +00:00
maflcko (Migrated from github.com) left a comment

Happy to re-ack the nits, or leave as-is, up to you.

review ACK e7320faded 🌸

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK e7320faded8c01efa25b28dd9f45b2f438a3795a 🌸
xxRFjCfvJ3xWB4CbqRUoAiX3BRWpGrBtSlN+ZcubKeDdgN7PTrEjEfN8y10gvx/lyHH5KwZB0fs/XE01spC0Dg==
Happy to re-ack the nits, or leave as-is, up to you. review ACK e7320faded8c01efa25b28dd9f45b2f438a3795a 🌸 <details><summary>Show signature</summary> Signature: ``` untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}" RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM= trusted comment: review ACK e7320faded8c01efa25b28dd9f45b2f438a3795a 🌸 xxRFjCfvJ3xWB4CbqRUoAiX3BRWpGrBtSlN+ZcubKeDdgN7PTrEjEfN8y10gvx/lyHH5KwZB0fs/XE01spC0Dg== ``` </details>
maflcko (Migrated from github.com) commented 2026-10-29 09:03:22 +00:00

nit in 3a0318af87: The commit message says "fields" (plural), but I think this should be singular? Maybe just list the field (or fields) by name in the msg?

nit in 3a0318af87a0c1a97d01d66e4aaff1ed96b1ad9d: The commit message says "fields" (plural), but I think this should be singular? Maybe just list the field (or fields) by name in the msg?
maflcko (Migrated from github.com) commented 2026-10-29 08:41:17 +00:00

ed16701f14: Why add a redundant comment that wasn't there before?

ed16701f14228e76b458041a18b23cdc39b74dd1: Why add a redundant comment that wasn't there before? <!-- Also the commit message bodies of all commits could be a bit shorter and just say: "Refactor; Replace resize and per-field vin/vout assignment with an single init-list assignment" (or so)
maflcko (Migrated from github.com) commented 2026-10-29 08:43:57 +00:00

nit in all commits: I think those can be CScript{} (with the C++11 braces)

nit in all commits: I think those can be `CScript{}` (with the C++11 braces)
alexanderwiederin (Migrated from github.com) reviewed 2026-10-29 10:25:14 +00:00
alexanderwiederin (Migrated from github.com) commented 2026-10-29 10:25:14 +00:00

Removed - thanks!

Removed - thanks!
alexanderwiederin (Migrated from github.com) reviewed 2026-10-29 10:25:25 +00:00
alexanderwiederin (Migrated from github.com) commented 2026-10-29 10:25:25 +00:00

Done - thanks!

Done - thanks!
alexanderwiederin (Migrated from github.com) reviewed 2026-10-29 10:25:44 +00:00
alexanderwiederin (Migrated from github.com) commented 2026-10-29 10:25:44 +00:00

I tried to clarify in the new commit message.

I tried to clarify in the new commit message.
maflcko commented 2026-10-29 10:58:09 +00:00 (Migrated from github.com)

only change is addressing the nits.

review ACK bdf58dd89c 🍠

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK bdf58dd89cc2fe2f0be5ac63755e821661022be6 🍠
cxTrq7geGloToqJWvbDYFT9Odp8hT9XiATjembn0iJOv/Cc/jYm+gMws2uRfh62h6UcuOgPe9IEvX+1jyoMtAw==
only change is addressing the nits. review ACK bdf58dd89cc2fe2f0be5ac63755e821661022be6 🍠 <details><summary>Show signature</summary> Signature: ``` untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}" RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM= trusted comment: review ACK bdf58dd89cc2fe2f0be5ac63755e821661022be6 🍠 cxTrq7geGloToqJWvbDYFT9Odp8hT9XiATjembn0iJOv/Cc/jYm+gMws2uRfh62h6UcuOgPe9IEvX+1jyoMtAw== ``` </details>
purpleKarrot commented 2026-10-29 11:27:16 +00:00 (Migrated from github.com)

Let me know if you have a preference for how to group them.

My preferred approach would be:

  1. Agree on the plan: https://github.com/bitcoin/bitcoin/issues/36692
  2. Provide the missing constructors: github.com/purpleKarrot/bitcoin@3468ff6401 and github.com/purpleKarrot/bitcoin@143edb6ac6
  3. Then, do one commit per file, in a way that it does not have to be revisited multiple times (eg, construct CTransaction): github.com/purpleKarrot/bitcoin@929bdaad8d

But even when the approach does not follow the steps 1 and 2, it is a step in the right direction, hence ACK bdf58dd89c

> Let me know if you have a preference for how to group them. My preferred approach would be: 0. Agree on the plan: https://github.com/bitcoin/bitcoin/issues/36692 1. Provide the missing constructors: https://github.com/purpleKarrot/bitcoin/commit/3468ff640100bac1756e98d0bfdf56f52cd48ec0 and https://github.com/purpleKarrot/bitcoin/commit/143edb6ac69eb386736735f41ef484323454acb9 2. Then, do one commit per file, in a way that it does not have to be revisited multiple times (eg, construct `CTransaction`): https://github.com/purpleKarrot/bitcoin/commit/929bdaad8d9b6eba41bf9ac462d892c38cde7caa But even when the approach does not follow the steps 1 and 2, it is a step in the right direction, hence ACK bdf58dd89cc2fe2f0be5ac63755e821661022be6
purpleKarrot (Migrated from github.com) approved these changes 2026-10-29 11:57:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36606
No description provided.