From fa298971e6890715e2b0b93f2a7f445d32d6622f Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 18 Aug 2021 09:17:06 +0200 Subject: Refactor: Turn the internal addrman check helper into a forced check --- src/addrman.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/addrman.h') diff --git a/src/addrman.h b/src/addrman.h index ca291d60ab..7dd8528bef 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -391,11 +391,12 @@ private: //! Return a random to-be-evicted tried table address. CAddrInfo SelectTriedCollision_() EXCLUSIVE_LOCKS_REQUIRED(cs); - //! Consistency check + //! Consistency check, taking into account m_consistency_check_ratio. Will std::abort if an inconsistency is detected. void Check() const EXCLUSIVE_LOCKS_REQUIRED(cs); - //! Perform consistency check. Returns an error code or zero. - int Check_() const EXCLUSIVE_LOCKS_REQUIRED(cs); + //! Perform consistency check, regardless of m_consistency_check_ratio. + //! @returns an error code or zero. + int ForceCheckAddrman() const EXCLUSIVE_LOCKS_REQUIRED(cs); /** * Return all or many randomly selected addresses, optionally by network. -- cgit v1.2.3