aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2021-08-02 22:22:18 +0200
committerMartin Zumsande <mzumsande@gmail.com>2021-08-02 22:34:30 +0200
commit036d7eadf5dd0e06e0734a5d78dbe28f4bfaa07f (patch)
tree580f0f42c32997781ccd22d7a919fea0c02bfa16 /src/addrman.h
parent318176aff1ded36d1fbc5977f288ac3bac1d8712 (diff)
downloadbitcoin-036d7eadf5dd0e06e0734a5d78dbe28f4bfaa07f.tar.xz
doc: Correct description of CAddrMan::Create()
Co-authored-by: Martin Zumsande <mzumsande@gmail.com>
Diffstat (limited to 'src/addrman.h')
-rw-r--r--src/addrman.h3
1 files changed, 1 insertions, 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.