Skip to content

Commit 036d7ea

Browse files
doc: Correct description of CAddrMan::Create()
Co-authored-by: Martin Zumsande <[email protected]>
1 parent 318176a commit 036d7ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/addrman.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,7 @@ class CAddrMan
696696
//! Find an entry.
697697
CAddrInfo* Find(const CNetAddr& addr, int *pnId = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs);
698698

699-
//! find an entry, creating it if necessary.
700-
//! nTime and nServices of the found node are updated, if necessary.
699+
//! Create a new entry and add it to the internal data structures mapInfo, mapAddr and vRandom.
701700
CAddrInfo* Create(const CAddress &addr, const CNetAddr &addrSource, int *pnId = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs);
702701

703702
//! Swap two elements in vRandom.

0 commit comments

Comments
 (0)