policy: remove unused GetVirtualTransactionInputSize #36706

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:remove_getvirtualtransactioninputsize changing 4 files +1 −14
  1. fanquake commented at 2:01 PM on October 30, 2026: member

    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.

  2. policy: remove unused GetVirtualTransactionInputSize
    The last non-test caller was removed in 9b7ec393b8 (#26567), when the
    wallet switched to estimating input sizes using descriptors. Since then
    it has only been used by the tx_in fuzz target and a helper in
    wallet_tests.
    3e2cf63da5
  3. DrahtBot added the label TX fees and policy on Oct 30, 2026
  4. DrahtBot commented at 2:02 PM on October 30, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

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

    Type Reviewers
    ACK l0rinc, jpk68

    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>

  5. in src/wallet/test/wallet_tests.cpp:642 in 3e2cf63da5
     638 | @@ -639,7 +639,7 @@ static size_t CalculateNestedKeyhashInputSize(bool use_max_sig)
     639 |  
     640 |      CTxIn tx_in;
     641 |      UpdateInput(tx_in, sig_data);
     642 | -    return (size_t)GetVirtualTransactionInputSize(tx_in);
     643 | +    return (size_t)GetVirtualTransactionSize(GetTransactionInputWeight(tx_in), 0, 0);
    


    l0rinc commented at 2:42 PM on October 30, 2026:

    nit: seems like an inline instead of a remove

  6. l0rinc approved
  7. l0rinc commented at 2:44 PM on October 30, 2026: contributor

    lightly tested code review ACK 3e2cf63da5090d59218c66dcc9a54c0f8c67e648

  8. jpk68 commented at 8:02 PM on October 30, 2026: contributor

    ACK 3e2cf63da5090d59218c66dcc9a54c0f8c67e648


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-10-31 09:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me