mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Merge #8173: Use SipHash for node eviction (cont'd)
eebc232test: Add more test vectors for siphash (Wladimir J. van der Laan)8884830Use C++11 thread-safe static initializers (Pieter Wuille)c31b24fUse 64-bit SipHash of netgroups in eviction (Pieter Wuille)9bf156bSupport SipHash with arbitrary byte writes (Pieter Wuille)053930fAvoid recalculating vchKeyedNetGroup in eviction logic. (Patrick Strateman)
This commit is contained in:
@@ -335,7 +335,7 @@ public:
|
||||
int64_t nLastRecv;
|
||||
int64_t nTimeConnected;
|
||||
int64_t nTimeOffset;
|
||||
CAddress addr;
|
||||
const CAddress addr;
|
||||
std::string addrName;
|
||||
CService addrLocal;
|
||||
int nVersion;
|
||||
@@ -362,6 +362,8 @@ public:
|
||||
CBloomFilter* pfilter;
|
||||
int nRefCount;
|
||||
NodeId id;
|
||||
|
||||
const uint64_t nKeyedNetGroup;
|
||||
protected:
|
||||
|
||||
// Denial-of-service detection/prevention
|
||||
@@ -450,6 +452,8 @@ private:
|
||||
CNode(const CNode&);
|
||||
void operator=(const CNode&);
|
||||
|
||||
static uint64_t CalculateKeyedNetGroup(const CAddress& ad);
|
||||
|
||||
public:
|
||||
|
||||
NodeId GetId() const {
|
||||
|
||||
Reference in New Issue
Block a user