Repository navigation
refactor: bench: make_hard_case to find a solution - #35997
yancyribbens wants to merge 1 commit into
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35997. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsNo conflicts as of last run. LLM Linter (✨ experimental)Possible typos and grammar issues:
2026-08-24 16:01:36 |
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
40f41f7 to
bd9d9a2
Compare
|
ACK Hi everyone, I reviewed the changes in this PR and tested the benchmark locally. I checked the BnB search logic as well as the assumptions used in make_hard_case(). I built bench_bitcoin with the changes from this PR and ran the BnBExhaustion benchmark. The benchmark completed successfully with exit code 0, and all the new assertions passed. The results confirm that the benchmark reaches the limit of 100,000 evaluations. ✌🏻 |
Add assertions showing the number of attempts were exhausted and that a solution was found.
bd9d9a2 to
6019067
Compare
|
Updated the target and UTXO amounts to be more realistic. Previously the target of 800,000 sats gave the false impression that such large numbers are needed to exhaust the search limit. Also adjusted the cost_of_change param to sit at the threshold of exhausting the limit so that it's more meaningful for the benchmark. |
Add additional assertions showing the number of attempts ware exhausted and that a solution was found.