This fixes the off-by-one error in the anti-fee-sniping tests for send
and sendall
. assert_greater_than
fails if the two values are equal.
Closes #33114
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33118.
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
148@@ -149,7 +149,9 @@ def test_send(self, from_wallet, to_wallet=None, amount=None, data=None,
149 else:
150 if add_to_wallet:
151 decoded_tx = from_wallet.gettransaction(txid=res["txid"], verbose=True)["decoded"]
152- assert_greater_than(decoded_tx["locktime"], from_wallet.getblockcount() - 100)
153+ # the locktime should be within 100 blocks of the
assert_greater_than_or_equal
?
🚧 At least one of the CI tasks failed.
Task lint
: https://github.com/bitcoin/bitcoin/runs/47228227670
LLM reason (✨ experimental): Lint errors due to trailing whitespace caused the CI failure.
Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example:
Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.
A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test.
An intermittent issue.
Leave a comment here, if you need help tracking down a confusing failure.