From fa21fc60c292ab947b2200e54201440f16230566 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 28 Mar 2022 11:41:20 +0200 Subject: scripted-diff: Rename addrman time symbols -BEGIN VERIFY SCRIPT- ren() { sed -i "s:\<$1\>:$2:g" $(git grep -l "\<$1\>" ./src ./test); } ren nLastTry m_last_try ren nLastSuccess m_last_success ren nLastGood m_last_good ren nLastCountAttempt m_last_count_attempt ren nSinceLastTry since_last_try ren nTimePenalty time_penalty ren nUpdateInterval update_interval ren fCurrentlyOnline currently_online -END VERIFY SCRIPT- --- src/addrman.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/addrman.h') diff --git a/src/addrman.h b/src/addrman.h index a0063e8a9c..dd5a8afeb3 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -107,11 +107,11 @@ public: * * @param[in] vAddr Address records to attempt to add. * @param[in] source The address of the node that sent us these addr records. - * @param[in] nTimePenalty A "time penalty" to apply to the address record's nTime. If a peer + * @param[in] time_penalty A "time penalty" to apply to the address record's nTime. If a peer * sends us an address record with nTime=n, then we'll add it to our - * addrman with nTime=(n - nTimePenalty). + * addrman with nTime=(n - time_penalty). * @return true if at least one address is successfully added. */ - bool Add(const std::vector& vAddr, const CNetAddr& source, int64_t nTimePenalty = 0); + bool Add(const std::vector& vAddr, const CNetAddr& source, int64_t time_penalty = 0); /** * Mark an address record as accessible and attempt to move it to addrman's tried table. -- cgit v1.2.3