bitcoin icon indicating copy to clipboard operation
bitcoin copied to clipboard

fix: avoid calling `GetCoin` and `SignTransaction()` inside of `assert(...)` in tests

Open UdjinM6 opened this issue 1 year ago • 3 comments

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

UdjinM6 avatar Mar 06 '24 01:03 UdjinM6

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 GetCoin to return optional<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.

DrahtBot avatar Mar 06 '24 01:03 DrahtBot

If you are worried about assert, you can use Assert, which does not have the "problem".

maflcko avatar Mar 12 '24 11:03 maflcko

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.

DrahtBot avatar Sep 08 '24 00:09 DrahtBot