mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
move-only: Move CAddrMan::Check to cpp file
This speeds up compilation of the whole program because the included header file is smaller. Can be reviewed with --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
This commit is contained in:
@@ -743,6 +743,17 @@ CAddrInfo CAddrMan::Select_(bool newOnly) const
|
||||
}
|
||||
}
|
||||
|
||||
void CAddrMan::Check() const
|
||||
{
|
||||
AssertLockHeld(cs);
|
||||
|
||||
const int err = Check_();
|
||||
if (err) {
|
||||
LogPrintf("ADDRMAN CONSISTENCY CHECK FAILED!!! err=%i\n", err);
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
int CAddrMan::Check_() const
|
||||
{
|
||||
AssertLockHeld(cs);
|
||||
|
||||
Reference in New Issue
Block a user