diff options
author | John Newbery <john@johnnewbery.com> | 2021-08-05 14:10:02 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-08-19 11:29:54 +0100 |
commit | 7e6e65918f75211b517fc887f5d90df8edd52ced (patch) | |
tree | a58e8031205061393d89bba7130cf9723f0fc87d /src/test | |
parent | 406be5ff9699874dc1d38d11f036e33cbdb820c9 (diff) |
[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.cpp | 2 |
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 |