Use unordered_map for CCoinsViewCache with salted hash #4494
pull sipa wants to merge 1 commits into bitcoin:master from sipa:coinhash changing 4 files +66 −4-
sipa commented at 3:26 pm on July 9, 2014: memberModified version of #4413 which uses salted lookup3 for computing txid hash keys.
-
sipa renamed this:
Add use salted hash unordered_map for CCoinsViewCache
Use unordered_map for CCoinsViewCache with salted hash
on Jul 9, 2014 -
laanwj commented at 4:29 pm on July 9, 2014: member
ACK on code changes, going to test.
BTW, neat solution, didn’t realize it could be done like this without introducing (overt) global state.
-
in src/coins.cpp: in 7872189a7e outdated
3@@ -4,6 +4,8 @@ 4 5 #include "coins.h" 6 7+#include "util.h"
jgarzik commented at 1:19 pm on July 14, 2014: contributorBasic question… does this build on all platforms? In another project. I cannot use unordered_set because it is a too-recent addition.
We must confirm that unordered_map lacks the same issues, as it is the first use in the tree.
Use unordered_map for CCoinsViewCache with salted hash bc42503f6asipa commented at 2:13 pm on July 14, 2014: memberRebased.laanwj commented at 2:31 pm on July 14, 2014: memberIt gets through the pulltester, it doesn’t get any older than that :)BitcoinPullTester commented at 2:46 pm on July 14, 2014: noneAutomatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4494_bc42503f6ab304608c321986a870795e45f5a016/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.laanwj merged this on Jul 15, 2014laanwj closed this on Jul 15, 2014
laanwj referenced this in commit 1f5e8fe804 on Jul 15, 2014MarcoFalke 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: 2024-12-23 09:12 UTC
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: 2024-12-23 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me