mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
[addrman] inline Clear() into CAddrMan ctor
Clear() is now only called from the ctor, so just inline the code into that function. The LOCK(cs) can be removed, since there can be no data races in the ctor. Also move the function definition out of the header and into the cpp file.
This commit is contained in:
@@ -48,7 +48,7 @@ public:
|
||||
unsigned char nVersion = 1;
|
||||
s << nVersion;
|
||||
s << ((unsigned char)32);
|
||||
s << nKey;
|
||||
s << uint256::ONE;
|
||||
s << 10; // nNew
|
||||
s << 10; // nTried
|
||||
|
||||
|
||||
Reference in New Issue
Block a user