fix: avoid calling `GetCoin` and `SignTransaction()` inside of `assert(...)` in tests
Technically, it's not possible to compile without assertions at the moment because of this check. However, if it would be removed one day then txpackage_tests will start to fail for such builds.
Running txpackage_tests compiled with the check removed and CPPFLAGS="-DNDEBUG":
master: *** 21 failures are detected in the test module "Bitcoin Core Test Suite"
this PR: *** No errors detected
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Code Coverage
For detailed information about the code coverage, see the test coverage report.
Reviews
See the guideline for information on the review process. A summary of reviews will appear here.
Conflicts
Reviewers, this pull request conflicts with the following ones:
-
#30849 (refactor: migrate
bool GetCointo returnoptional<Coin>by l0rinc)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
If you are worried about assert, you can use Assert, which does not have the "problem".
There hasn't been much activity lately. What is the status here?
Finding reviewers may take time. However, if the patch is no longer relevant, please close this pull request. If the author lost interest or time to work on this, please close it and mark it 'Up for grabs' with the label, so that it can be picked up in the future.