[refactor] Remove using namespace <xxx> from src/ #9644

pull kallewoof wants to merge 1 commits into bitcoin:master from kallewoof:no-using-namespace-src changing 13 files +179 −206
  1. kallewoof commented at 9:09 AM on January 27, 2017: member

    This is the final PR of the #9235 sub-sets, including the remaining files in src/.

    I don't know if this should go into 0.14 or not (it is binary-checked so it should not affect anything), but I figured I would wrap these up just in case.

    Same-binaries check:

    $ ../bitcoin-maintainer-tools/build-for-compare.py 9b4d2673b7757fd242b13c972c73897c92a90ce1 b7b48c8bbdf7a90861610b035d8b0a247ef78c45 --executables "src/bitcoind,src/bitcoin-cli,src/bitcoin-tx" --patches "stripbuildinfo.patch,stripbuildinfo-without-using-ns.patch"
    [...]
    make[1]: Leaving directory '/tmp/repo/src'
    >>> [do_build] Copying object files...
    >>> [do_build] Performing basic analysis pass...
    >>> [do_build] Use these commands to compare results:
    >>> [do_build] $ sha256sum /tmp/compare/*.stripped
    >>> [do_build] $ git diff -W --word-diff /tmp/compare/9b4d2673b7757fd242b13c972c73897c92a90ce1 /tmp/compare/b7b48c8bbdf7a90861610b035d8b0a247ef78c45
    $ sha256sum /tmp/compare/*.stripped
    e949fef0c4e3c9fcd7927acfaca0737629caa82cc70218e483adbb1ecc9b8bfc  /tmp/compare/bitcoin-cli.9b4d2673b7757fd242b13c972c73897c92a90ce1.stripped
    e949fef0c4e3c9fcd7927acfaca0737629caa82cc70218e483adbb1ecc9b8bfc  /tmp/compare/bitcoin-cli.b7b48c8bbdf7a90861610b035d8b0a247ef78c45.stripped
    59345e230f87b0f4a9a4f24b17dce83f783f13fe18fdaa9f88573400e6f8730c  /tmp/compare/bitcoind.9b4d2673b7757fd242b13c972c73897c92a90ce1.stripped
    59345e230f87b0f4a9a4f24b17dce83f783f13fe18fdaa9f88573400e6f8730c  /tmp/compare/bitcoind.b7b48c8bbdf7a90861610b035d8b0a247ef78c45.stripped
    512ca5f056c02478c638bf48c056e8bb12d5a7ca924f972bf2f1f8a833e92bab  /tmp/compare/bitcoin-tx.9b4d2673b7757fd242b13c972c73897c92a90ce1.stripped
    512ca5f056c02478c638bf48c056e8bb12d5a7ca924f972bf2f1f8a833e92bab  /tmp/compare/bitcoin-tx.b7b48c8bbdf7a90861610b035d8b0a247ef78c45.stripped
    $ git diff -W --word-diff /tmp/compare/9b4d2673b7757fd242b13c972c73897c92a90ce1 /tmp/compare/b7b48c8bbdf7a90861610b035d8b0a247ef78c45
    $ 
    

    The affected files and namespaces:

    bloom.cpp:                std
    chain.cpp:                std [unused]
    core_read.cpp:            std
    core_write.cpp:           std
    init.cpp:                 std, boost::filesystem [inside void CleanupBlockRevFiles()]
    merkleblock.cpp:          std
    miner.cpp:                std
    net_processing.cpp:       std
    rest.cpp:                 std
    timedata.cpp:             std
    txdb.cpp:                 std
    txmempool.cpp:            std
    validation.cpp:           std
    
  2. Refactor: Remove using namespace <xxx> from src/*.cpp. b7b48c8bbd
  3. kallewoof force-pushed on Jan 27, 2017
  4. laanwj commented at 3:13 PM on January 27, 2017: member

    That's a much larger diff than I expected, but it seems sane, utACK.

  5. laanwj added the label Refactoring on Jan 27, 2017
  6. sipa commented at 5:57 PM on January 27, 2017: member

    Concept ACK, and if it doesn't change the binaries (I haven't checked myself yet), I'm fine with merging it anytime.

  7. practicalswift commented at 7:16 AM on January 28, 2017: contributor

    utACK. Thanks for doing this. See my related PR #9544.

  8. fanquake commented at 7:23 AM on January 28, 2017: member

    utACK On Sat, 28 Jan 2017 at 07:16, practicalswift notifications@github.com wrote:

    utACK. Thanks for doing this. See my related PR #9544 https://github.com/bitcoin/bitcoin/pull/9544.

    — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/pull/9644#issuecomment-275832501, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0t8rorVIjg41JvY87Cun5egIxX5rABks5rWutOgaJpZM4LvjgS .

  9. btcdrak commented at 9:09 AM on January 28, 2017: contributor

    utACK

  10. MarcoFalke commented at 2:58 PM on January 28, 2017: member

    same binaries ACK on b7b48c8bbdf7a90861610b035d8b0a247ef78c45, but unfortunately we can not merge it, as it conflicts with an open net bug fix tagged for 0.14.

  11. MarcoFalke commented at 12:11 PM on January 30, 2017: member

    Meh, just going to merge this as the bugfix needs rebase anyway and this pull seems to be sufficiently reviewed.

  12. MarcoFalke merged this on Jan 30, 2017
  13. MarcoFalke closed this on Jan 30, 2017

  14. MarcoFalke referenced this in commit 668de70be0 on Jan 30, 2017
  15. kallewoof deleted the branch on Jan 30, 2017
  16. rebroad commented at 11:43 AM on February 1, 2017: contributor

    @MarcoFalke sufficiently reviewed? All the ACKs were either untested or concept only from what I can see.

  17. MarcoFalke commented at 12:48 PM on February 1, 2017: member

    @rebroad, I think for a simple refactoring patch the following review is sufficient:

    • OP checked for same binaries
    • I checked for same binaries
    • 5 people were reading the diff and utACKed, one was just Concept ACKing
    • The automated tests passed
    • I checked against all open pull request for 0.14 that no new conflicts are introduced

    I do not understand why you call that insufficient.

    On Wed, Feb 1, 2017 at 12:43 PM, R E Broadley notifications@github.com wrote:

    @MarcoFalke https://github.com/MarcoFalke sufficiently reviewed? All the ACKs were either untested or concept only from what I can see.

    — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/pull/9644#issuecomment-276637445, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGmvzd2P94KQ5OD5Iqooo6c6zAeaAtiks5rYG_ngaJpZM4LvjgS .

  18. rebroad commented at 5:33 AM on February 2, 2017: contributor

    @MarcoFalke thanks for clarifying

  19. codablock referenced this in commit 290fa7f722 on Jan 19, 2018
  20. codablock referenced this in commit 25074aeb43 on Jan 23, 2018
  21. andvgal referenced this in commit 775b31252e on Jan 6, 2019
  22. CryptoCentric referenced this in commit 23b277e230 on Feb 27, 2019
  23. zkbot referenced this in commit be459619a8 on Mar 5, 2021
  24. zkbot referenced this in commit 78de0cdf46 on Apr 15, 2021
  25. 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-14 18:15 UTC

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