Refactor: Updated signMessage to use util::Expected and removed SigningResult::OK #35201

pull kevkevinpal wants to merge 1 commits into bitcoin:master from kevkevinpal:SigningResultUtilExpected changing 11 files +34 −36
  1. kevkevinpal commented at 1:21 PM on May 3, 2026: contributor

    Summary

    Similar to #32958 and #35105.

    We now are using util::Expected and removed SigningResult::OK

    This makes the enum less confusing because now it no longer includes OK and is now a pure error enum.

  2. DrahtBot added the label Refactoring on May 3, 2026
  3. DrahtBot commented at 1:21 PM on May 3, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35201.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #35444 (wallet: make descriptor SPKM mutex non-recursive by w0xlt)
    • #35436 (wallet: Add addHDkey interface by pseudoramdom)
    • #34617 (fees: wallet: remove block policy fee estimator internals from wallet by ismaelsadeeq)
    • #34520 (refactor: Add [[nodiscard]] to functions returning bool+mutable ref by maflcko)
    • #34075 (fees: Introduce Mempool Based Fee Estimation to reduce overestimation by ismaelsadeeq)

    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.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. kevkevinpal force-pushed on May 3, 2026
  5. DrahtBot added the label CI failed on May 3, 2026
  6. DrahtBot commented at 1:36 PM on May 3, 2026: contributor

    <!--85328a0da195eb286784d51f73fa0af9-->

    🚧 At least one of the CI tasks failed. <sub>Task test ancestor commits: https://github.com/bitcoin/bitcoin/actions/runs/25280307633/job/74116469483</sub> <sub>LLM reason (✨ experimental): CI failed due to a Clang -Werror build error: the switch in signverifymessagedialog.cpp doesn’t handle the OK enum value.</sub>

    <details><summary>Hints</summary>

    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.

    </details>

  7. kevkevinpal force-pushed on May 3, 2026
  8. kevkevinpal commented at 2:00 PM on May 4, 2026: contributor

    Looks like the CI failure is fixed with this PR #35202 will rebase onto master once it's merged to get the CI passing

  9. kevkevinpal force-pushed on May 4, 2026
  10. kevkevinpal commented at 8:53 PM on May 4, 2026: contributor

    rebased to e14b3ff

    The CI should pass now

  11. DrahtBot removed the label CI failed on May 5, 2026
  12. DrahtBot added the label Needs rebase on May 22, 2026
  13. refactor: signMessage now uses util::Expected
    In this change we updated signMessage to use util::Expected and also removed SigningResult::OK
    5cc8436eeb
  14. kevkevinpal force-pushed on Jun 2, 2026
  15. kevkevinpal commented at 3:14 AM on June 2, 2026: contributor

    rebased and resolved conflicts in 5cc8436

  16. DrahtBot removed the label Needs rebase on Jun 2, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-06-13 21:30 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me