Make AbortNode function static #13018

pull Empact wants to merge 1 commits into bitcoin:master from Empact:abort-node-static changing 1 files +2 −2
  1. Empact commented at 12:39 PM on April 18, 2018: member

    Has been src/validation.cpp-only since 27afcd89db302d87168e0f504ee141dbf0e1ea22

  2. Make AbortNode function static
    Has been src/validation.cpp-only since 27afcd89db302d87168e0f504ee141dbf0e1ea22
    1d6f162301
  3. fanquake added the label Refactoring on Apr 18, 2018
  4. fanquake added the label Validation on Apr 18, 2018
  5. MarcoFalke commented at 1:00 PM on April 18, 2018: member

    I fail to see how this makes a difference? I suggest closing the pull request according to the guidelines https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#refactoring

  6. Empact commented at 1:05 PM on April 18, 2018: member

    Fair enough, since it isn't declared elsewhere, it's already limited to this file. Static would just make that explicit / enforced.

  7. Empact closed this on Apr 18, 2018

  8. Empact deleted the branch on Apr 18, 2018
  9. MarcoFalke commented at 1:12 PM on April 18, 2018: member

    You'd had to add a section to the developer note style guide and get that accepted first, otherwise people will refactor the code back and forth to their own liking.

  10. Empact commented at 1:21 PM on April 18, 2018: member

    Ha - yeah my general sentiment is that more restrictive is better - const over non-const, static method over non-static. The idea here was to incrementally restrict the usage of CValidationState toward validation.cpp, and was prompted by questions from my looking into #13014.

  11. Empact commented at 6:27 AM on May 16, 2018: member

    A happy ending: #13163 :)

  12. DrahtBot locked this on Sep 8, 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 06:15 UTC

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