aboutsummaryrefslogtreecommitdiff
path: root/src/blockfilter.h
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2018-08-20 23:35:29 -0700
committerJim Posen <jim.posen@gmail.com>2018-11-05 09:30:56 -0800
commitfef5adcc331c4d7b92b71e03fc8a73343a865599 (patch)
treeabb6fd12e94870fba2b0343c46d107bc63934e75 /src/blockfilter.h
parent4fb789e9b2ffdf48fd50293b3982b3fce4d5fbdf (diff)
downloadbitcoin-fef5adcc331c4d7b92b71e03fc8a73343a865599.tar.xz
blockfilter: Use unordered_set instead of set in blockfilter.
Diffstat (limited to 'src/blockfilter.h')
-rw-r--r--src/blockfilter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/blockfilter.h b/src/blockfilter.h
index 46833ac0be..871be11769 100644
--- a/src/blockfilter.h
+++ b/src/blockfilter.h
@@ -5,14 +5,15 @@
#ifndef BITCOIN_BLOCKFILTER_H
#define BITCOIN_BLOCKFILTER_H
-#include <set>
#include <stdint.h>
+#include <unordered_set>
#include <vector>
#include <primitives/block.h>
#include <serialize.h>
#include <uint256.h>
#include <undo.h>
+#include <util/bytevectorhash.h>
/**
* This implements a Golomb-coded set as defined in BIP 158. It is a
@@ -22,7 +23,7 @@ class GCSFilter
{
public:
typedef std::vector<unsigned char> Element;
- typedef std::set<Element> ElementSet;
+ typedef std::unordered_set<Element, ByteVectorHash> ElementSet;
private:
uint64_t m_siphash_k0;