diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-08-02 13:42:42 +0200 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-08-05 15:24:12 +0100 |
commit | ee458d84fc187d69f002ebead6fccc4f4f9c0744 (patch) | |
tree | 8929ebc0f1544e8e2845c89298ab20d8194ec540 /src/addrman.h | |
parent | d67330d11245b11fbdd5e2dd5343ee451186931e (diff) |
Add missing const to CAddrMan::Check_()
Also: Always compile the function signature to avoid similar issues in
the future.
Diffstat (limited to 'src/addrman.h')
-rw-r--r-- | src/addrman.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/addrman.h b/src/addrman.h index 1dd1932421..16be374f7b 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -738,19 +738,15 @@ private: void Check() const EXCLUSIVE_LOCKS_REQUIRED(cs) { -#ifdef DEBUG_ADDRMAN AssertLockHeld(cs); const int err = Check_(); if (err) { LogPrintf("ADDRMAN CONSISTENCY CHECK FAILED!!! err=%i\n", err); } -#endif } -#ifdef DEBUG_ADDRMAN //! Perform consistency check. Returns an error code or zero. int Check_() const EXCLUSIVE_LOCKS_REQUIRED(cs); -#endif /** * Return all or many randomly selected addresses, optionally by network. |