doc: Update comment describing CheckInputs in validation.cpp #16781

pull michaelfolkson wants to merge 1 commits into bitcoin:master from michaelfolkson:20190901-checkinputs changing 1 files +1 −1
  1. michaelfolkson commented at 1:19 PM on September 1, 2019: contributor

    In the Bitcoin Core PR review club @jnewbery noted that the comment describing the CheckInputs() function is no longer accurate.

    13:10 < jnewbery> Note that the CheckInputs function is slightly confusingly named (and the comment above is incorrect in parts) 13:11 < jnewbery> The comment says "Check whether all inputs of this transaction are valid (no double spends, scripts & sigs, amounts) 13:11 < jnewbery> historically, that was true (it'd check amounts and doublespends). Now it only checks scripts and sigs.

    CheckInputs() no longer checks amounts and double spends and so I have deleted double spends and amounts from the comment. @jnewbery also noted that CheckInputs() is confusingly named and so the function name should be replaced.

    If there is an obvious function name replacement then perhaps replacing the function name should be included in this PR. For now I thought it best to just change the comment and open an issue on what this function name replacement should be. I don't know if there is an obvious replacement. If that is a suboptimal approach please comment below.

  2. doc: Update comment describing CheckInputs in validation.cpp caf3bf1890
  3. fanquake added the label Docs on Sep 1, 2019
  4. DrahtBot commented at 3:00 PM on September 1, 2019: member

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #16658 ([WIP] validation: Rename CheckInputs to CheckInputScripts by jnewbery)

    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.

  5. michaelfolkson commented at 3:36 PM on September 1, 2019: contributor

    Closing this as @jnewbery already opened a PR to do this (#16658), apologies.

  6. michaelfolkson closed this on Sep 1, 2019

  7. jonatack commented at 6:37 PM on September 1, 2019: member

    (Testing the GitHub API to pick up reviews, ignore this.)

  8. michaelfolkson deleted the branch on Sep 7, 2019
  9. DrahtBot locked this on Dec 16, 2021

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-04-22 18:14 UTC

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