Change the version gate from 299900 to 290100 for bypassing the log rate limit in case an explicit version is set in the functional test framework.
See discussion here: #33225 (review)
Change the version gate from 299900 to 290100 for bypassing the log rate limit in case an explicit version is set in the functional test framework.
See discussion here: #33225 (review)
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33612.
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | janb84, maflcko, stickies-v |
| Stale ACK | kevkevinpal |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
ACK 45dda1b
pretty straightforward and according to #33225 (review) seems like we can still open to master and backport this change
160@@ -161,7 +161,7 @@ def __init__(self, i, datadir_path, *, chain, rpchost, timewait, timeout_factor,
161 self.args.append("-logsourcelocations")
162 if self.version_is_at_least(239000):
163 self.args.append("-loglevel=trace")
164- if self.version_is_at_least(299900):
165+ if self.version_is_at_least(289900):
I don’t understand this change. Neither 28.99, nor 29.0 had this change. So appending the arg will lead to a startup error or warning there?
0$ bitcoin-core.daemon -regtest -nologratelimit
1Error: Error parsing command line arguments: Invalid parameter -nologratelimit
2$ bitcoin-core.daemon -version | grep version
3Bitcoin Core daemon version v29.0.0
ACK 7b544341c0021dd713f05bc439ee190de911930c
PR changes version gate for test framework to disable the log rate limiting. The log rate limit change was backported to 29.1. This PR sets gate from v29.99 to v29.01 which has the change.
In the case a user on 29.x runs the functional tests and is confused why logs are rate limited in output.
This may also help in the future, when a previous release of 29.1 (or later in the 29.x series) is picked.
lgtm ACK 7b544341c0021dd713f05bc439ee190de911930c
I was testing out 29.x without this patch and was very confused why the rate limiting was not being applied. Turns out my description in the OP is wrong.
Unless the version is explicitly set as done in the wallet_backwards_compatibility.py test, the version_is_at_least check will always return True since self.version is None. So, the functional tests in 29.x already ignore the rate limiting, but this is more correct.