From 036d7eadf5dd0e06e0734a5d78dbe28f4bfaa07f Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Mon, 2 Aug 2021 22:22:18 +0200 Subject: [PATCH] doc: Correct description of CAddrMan::Create() Co-authored-by: Martin Zumsande --- src/addrman.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/addrman.h b/src/addrman.h index 7e87457a9f..4f1d5e6bdf 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -696,8 +696,7 @@ private: //! Find an entry. CAddrInfo* Find(const CNetAddr& addr, int *pnId = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs); - //! find an entry, creating it if necessary. - //! nTime and nServices of the found node are updated, if necessary. + //! Create a new entry and add it to the internal data structures mapInfo, mapAddr and vRandom. CAddrInfo* Create(const CAddress &addr, const CNetAddr &addrSource, int *pnId = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs); //! Swap two elements in vRandom.