aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-08-05 14:10:02 +0100
committerJohn Newbery <john@johnnewbery.com>2021-08-19 11:29:54 +0100
commit7e6e65918f75211b517fc887f5d90df8edd52ced (patch)
treea58e8031205061393d89bba7130cf9723f0fc87d /src/test
parent406be5ff9699874dc1d38d11f036e33cbdb820c9 (diff)
downloadbitcoin-7e6e65918f75211b517fc887f5d90df8edd52ced.tar.xz
[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.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/addrman_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/addrman_tests.cpp b/src/test/addrman_tests.cpp
index 50be342630..cd5dc2370f 100644
--- a/src/test/addrman_tests.cpp
+++ b/src/test/addrman_tests.cpp
@@ -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