mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-04 17:52:25 +01:00
p2p: Avoid allocating memory for addrKnown where we don't need it
This commit is contained in:
@@ -115,9 +115,6 @@ public:
|
||||
class CRollingBloomFilter
|
||||
{
|
||||
public:
|
||||
// A random bloom filter calls GetRand() at creation time.
|
||||
// Don't create global CRollingBloomFilter objects, as they may be
|
||||
// constructed before the randomizer is properly initialized.
|
||||
CRollingBloomFilter(const unsigned int nElements, const double nFPRate);
|
||||
|
||||
void insert(const std::vector<unsigned char>& vKey);
|
||||
|
||||
Reference in New Issue
Block a user