diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-11-06 15:22:45 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-11-06 15:36:20 +0100 |
| commit | 880bc728b43f1ea3df690512087590270cf35601 (patch) | |
| tree | 56ac6fec3bdb75177525b006beb44fb1fda50333 /src/test | |
| parent | Merge #14658: qa: Add test to ensure node can generate all rpc help texts at ... (diff) | |
| parent | blockfilter: Use unordered_set instead of set in blockfilter. (diff) | |
| download | discoin-880bc728b43f1ea3df690512087590270cf35601.tar.xz discoin-880bc728b43f1ea3df690512087590270cf35601.zip | |
Merge #14074: Use std::unordered_set instead of set in blockfilter interface
fef5adcc331c4d7b92b71e03fc8a73343a865599 blockfilter: Use unordered_set instead of set in blockfilter. (Jim Posen)
4fb789e9b2ffdf48fd50293b3982b3fce4d5fbdf Extract CSipHasher to it's own file in crypto/ directory. (Jim Posen)
Pull request description:
Use `std::unordered_set` (hash set) instead of `std::set` (tree set) in blockfilter interface, as suggested by @ryanofsky in #12254. This may result in a very minor speedup, but I haven't measured.
This moves `CSipHasher` to it's own file `crypto/siphash.h`, so that it can be used in the libbitcoin_util library without including `hash.{h,cpp}`. I'm open to other suggestions on solving this issue if people would prefer to leave CSipHasher where it is.
Tree-SHA512: 593d1abda771e45f2860d5334272980d20df0b81925a402bb9ee875e17595c2517c0d8ac9c579218b84bbf66e15b49418241c1fe9f9265719bcd2377b0cd0d88
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/hash_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/hash_tests.cpp b/src/test/hash_tests.cpp index fd3a6b0de..e8e504085 100644 --- a/src/test/hash_tests.cpp +++ b/src/test/hash_tests.cpp @@ -2,6 +2,7 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include <crypto/siphash.h> #include <hash.h> #include <util/strencodings.h> #include <test/test_bitcoin.h> |