File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,14 @@ class AddrMan
69
69
// ! Return the number of (unique) addresses in all tables.
70
70
size_t size () const ;
71
71
72
- // ! Add addresses to addrman's new table.
72
+ /* *
73
+ * Attempt to add one or more addresses to addrman's new table.
74
+ *
75
+ * @param[in] vAddr Address records to attempt to add.
76
+ * @param[in] source The address of the node that sent us these addr records.
77
+ * @param[in] nTimePenalty A "time penalty" to apply to the address record's nTime. If a peer
78
+ * sends us an address record with nTime=n, then we'll add it to our
79
+ * addrman with nTime=(n - nTimePenalty). */
73
80
bool Add (const std::vector<CAddress>& vAddr, const CNetAddr& source, int64_t nTimePenalty = 0 );
74
81
75
82
// ! Mark an entry as accessible, possibly moving it from "new" to "tried".
You can’t perform that action at this time.
0 commit comments