HomePhabricator

Rename addrman time symbols

Description

Rename addrman time symbols

Summary:
scripted diff:

-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 nTimePenalty      time_penalty
 ren nUpdateInterval   update_interval
 ren fCurrentlyOnline  currently_online
-END VERIFY SCRIPT-

And manually rename the local vars in addrman_tests.cpp

This is a partial backport of core#24697
https://github.com/bitcoin/bitcoin/pull/24697/commits/fa21fc60c292ab947b2200e54201440f16230566

Depends on D15093

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15094

Details

Provenance
PiRKAuthored on Jan 5 2024, 09:10
PiRKPushed on Jan 8 2024, 09:03
Reviewer
Restricted Project
Differential Revision
D15094: Rename addrman time symbols
Parents
rABCc27c98eac3b7: refactor: Remove not needed std::max
Branches
Unknown
Tags
Unknown