addrman: change asserts to Assumes

`Assume` is safer since the checks are non-fatal- errors in these functions
should provide feedback in debug builds, but do not need to deter further node
operations in production.
This commit is contained in:
Amiti Uttarwar
2023-04-25 17:04:11 +01:00
parent 768770771f
commit b9f1e86f12
2 changed files with 10 additions and 10 deletions

View File

@@ -255,7 +255,7 @@ private:
/** Helper to generalize looking up an addrman entry from either table.
*
* @return int The nid of the entry or -1 if the addrman position is empty.
* @return int The nid of the entry. If the addrman position is empty or not found, returns -1.
* */
int GetEntry(bool use_tried, size_t bucket, size_t position) const EXCLUSIVE_LOCKS_REQUIRED(cs);