policy: remove unused GetVirtualTransactionInputSize #36706

Manually merged
fanquake merged 1 commit from remove_getvirtualtransactioninputsize into master 2026-11-03 20:42:52 +00:00 AGit
fanquake commented 2026-10-30 14:01:51 +00:00 (Migrated from github.com)

The last non-test caller was removed in 9b7ec393b8 (#26567). Since then it has only been used by the tx_in fuzz target and a helper in wallet_tests.

The last non-test caller was removed in 9b7ec393b8 (#26567). Since then it has only been used by the `tx_in` fuzz target and a helper in `wallet_tests`.
DrahtBot commented 2026-10-30 14:02:02 +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 l0rinc, jpk68, ismaelsadeeq, sedited

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

LLM Linter (✨ experimental)

Possible places where named args for integral literals may be used (e.g. func(x, /*named_arg=*/0) in C++, and func(x, named_arg=0) in Python):

  • src/wallet/test/wallet_tests.cpp: GetVirtualTransactionSize(GetTransactionInputWeight(tx_in), 0, 0)

2026-10-30 14:02:11

<!--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/36706 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36706.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36706#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 | [l0rinc](https://github.com/bitcoin/bitcoin/pull/36706#pullrequestreview-5713933074), [jpk68](https://github.com/bitcoin/bitcoin/pull/36706#issuecomment-6532346372), [ismaelsadeeq](https://github.com/bitcoin/bitcoin/pull/36706#pullrequestreview-5736576315), [sedited](https://github.com/bitcoin/bitcoin/pull/36706#pullrequestreview-5759128555) | 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. <!--5faf32d7da4f0f540f40219e4f7537a3--> ### LLM Linter (✨ experimental) Possible places where named args for integral literals may be used (e.g. `func(x, /*named_arg=*/0)` in C++, and `func(x, named_arg=0)` in Python): - `src/wallet/test/wallet_tests.cpp`: `GetVirtualTransactionSize(GetTransactionInputWeight(tx_in), 0, 0)` <sup>2026-10-30 14:02:11</sup>
l0rinc (Migrated from github.com) approved these changes 2026-10-30 14:44:15 +00:00
l0rinc (Migrated from github.com) left a comment

lightly tested code review ACK 3e2cf63da5

lightly tested code review ACK 3e2cf63da5090d59218c66dcc9a54c0f8c67e648
l0rinc (Migrated from github.com) commented 2026-10-30 14:42:29 +00:00

nit: seems like an inline instead of a remove

nit: seems like an inline instead of a remove
jpk68 commented 2026-10-30 20:02:12 +00:00 (Migrated from github.com)
ACK 3e2cf63da5090d59218c66dcc9a54c0f8c67e648
ismaelsadeeq (Migrated from github.com) reviewed 2026-11-02 12:30:32 +00:00
ismaelsadeeq (Migrated from github.com) left a comment
ACK 3e2cf63da5090d59218c66dcc9a54c0f8c67e648
sedited (Migrated from github.com) approved these changes 2026-11-03 20:37:47 +00:00
sedited (Migrated from github.com) left a comment
ACK 3e2cf63da5090d59218c66dcc9a54c0f8c67e648
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!36706
No description provided.