Skip to content

Conversation

kallewoof
Copy link
Contributor

@kallewoof kallewoof commented Jan 27, 2017

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

@laanwj
Copy link
Member

laanwj commented Jan 27, 2017

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

@sipa
Copy link
Member

sipa commented Jan 27, 2017

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

@practicalswift
Copy link
Contributor

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

@fanquake
Copy link
Member

fanquake commented Jan 28, 2017 via email

@btcdrak
Copy link
Contributor

btcdrak commented Jan 28, 2017

utACK

@maflcko
Copy link
Member

maflcko commented Jan 28, 2017

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

@maflcko
Copy link
Member

maflcko commented Jan 30, 2017

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

@maflcko maflcko merged commit b7b48c8 into bitcoin:master Jan 30, 2017
maflcko pushed a commit that referenced this pull request Jan 30, 2017
b7b48c8 Refactor: Remove using namespace <xxx> from src/*.cpp. (Karl-Johan Alm)
@kallewoof kallewoof deleted the no-using-namespace-src branch January 30, 2017 12:14
@rebroad
Copy link
Contributor

rebroad commented Feb 1, 2017

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

@maflcko
Copy link
Member

maflcko commented Feb 1, 2017 via email

@rebroad
Copy link
Contributor

rebroad commented Feb 2, 2017

@MarcoFalke thanks for clarifying

codablock pushed a commit to codablock/dash that referenced this pull request Jan 23, 2018
b7b48c8 Refactor: Remove using namespace <xxx> from src/*.cpp. (Karl-Johan Alm)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
b7b48c8 Refactor: Remove using namespace <xxx> from src/*.cpp. (Karl-Johan Alm)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 27, 2019
b7b48c8 Refactor: Remove using namespace <xxx> from src/*.cpp. 
(Karl-Johan Alm)
zkbot added a commit to zcash/zcash that referenced this pull request Mar 5, 2021
Backport bloom filter improvements

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#7113
- bitcoin/bitcoin#7818
  - Only the second commit (to resolve conflicts).
- bitcoin/bitcoin#7934
- bitcoin/bitcoin#8655
  - Partial backport to help resolve conflicts.
- bitcoin/bitcoin#9060
- bitcoin/bitcoin#9223
- bitcoin/bitcoin#9644
  - Partial backport to help resolve conflicts.
- bitcoin/bitcoin#9916
- bitcoin/bitcoin#9750
- bitcoin/bitcoin#13176
- bitcoin/bitcoin#13948
- bitcoin/bitcoin#16073
- bitcoin/bitcoin#18670
- bitcoin/bitcoin#18806
  - Reveals upstream's covert fix for CVE-2013-5700.
- bitcoin/bitcoin#19968
zkbot added a commit to zcash/zcash that referenced this pull request Apr 15, 2021
Backport bloom filter improvements

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#7113
- bitcoin/bitcoin#7818
  - Only the second commit (to resolve conflicts).
- bitcoin/bitcoin#7934
- bitcoin/bitcoin#8655
  - Partial backport to help resolve conflicts.
- bitcoin/bitcoin#9060
- bitcoin/bitcoin#9223
- bitcoin/bitcoin#9644
  - Partial backport to help resolve conflicts.
- bitcoin/bitcoin#9916
- bitcoin/bitcoin#9750
- bitcoin/bitcoin#13176
- bitcoin/bitcoin#13948
- bitcoin/bitcoin#16073
- bitcoin/bitcoin#18670
- bitcoin/bitcoin#18806
  - Reveals upstream's covert fix for CVE-2013-5700.
- bitcoin/bitcoin#19968
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants