Skip to content

Conversation

@jamillambert
Copy link
Collaborator

@jamillambert jamillambert commented Sep 8, 2025

#351 described the problem

  • During the updating of the RPCs some of them changed from having a
    model to not or vice versa. There is one typo. There is also a duplicate entry for enumeratesigners which was added to signer and not removed from wallet.
    • Fix the tags in verify to match the correct RPC method definitions.
  • There were false positives in verify when the RPC name was a substring
    of another identifier.
    • Change the regex to match whole words.
  • verify does not fail when there are detected problems, it prints
    Correct ✓ and continues.
    • Change the tool so that it prints Incorrect ✗ if there are
      inconsistencies.
    • Run all tests to the end and then if there were any errors, return a
      non-zero exit code.
    • Change verify_correct_methods to return a Result<()> instead of Result<(bool)> to match the other functions.

Closes #351

@jamillambert jamillambert force-pushed the 0809-verify-fix branch 2 times, most recently from 275b042 to a8a2291 Compare September 8, 2025 11:44
During the updating of the RPCs some of them changed from having a
model to not or vice versa. There is also one typo and a duplicate
entry for `enumeratesigners` which was added to `signer` and not removed
from `wallet`.

Fix the tags in verify to match the correct RPC method definitions.
There were false positives in verify when the RPC name was a substring
of another identifier.

Change the regex to match whole words.
Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 2a6eec7

@tcharding tcharding merged commit d3126b0 into rust-bitcoin:master Sep 9, 2025
30 checks passed
@tcharding
Copy link
Member

Nice one fella.

blaze-smith470pm added a commit to blaze-smith470pm/corepc that referenced this pull request Sep 26, 2025
2a6eec72683a971ae91d6df7f6eebeb84039be04 Make verfiy fail on error (Jamil Lambert, PhD)
31382bf83826751418176c8350b0f35751e62f2e Verify search for whole word (Jamil Lambert, PhD)
e2c78e4b7cf87e1f82dbe40df6b32441c34e900a Fix verify RPC method tags (Jamil Lambert, PhD)

Pull request description:

  #351 described the problem

  - During the updating of the RPCs some of them changed from having a
  model to not or vice versa. There is one typo. There is also a duplicate entry for `enumeratesigners` which was added to `signer` and not removed from `wallet`.
     - Fix the tags in `verify` to match the correct RPC method definitions.
   - There were false positives in verify when the RPC name was a substring
  of another identifier.
     - Change the regex to match whole words.
  - `verify` does not fail when there are detected problems, it prints
  `Correct ✓` and continues.
     - Change the tool so that it prints `Incorrect ✗` if there are
  inconsistencies.
     - Run all tests to the end and then if there were any errors, return a
  non-zero exit code.
     - Change `verify_correct_methods` to return a `Result<()>` instead of `Result<(bool)>` to match the other functions.

  Closes #351

ACKs for top commit:
  tcharding:
    ACK 2a6eec72683a971ae91d6df7f6eebeb84039be04

Tree-SHA512: a3c43af866f02fd7ec18ab608935fdd4e05cd9cec4e91cddacf6c4574791531aae0394db194c5c31e869402dd2a049164b22b24dcb6e62e582255a3184182d1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Verify job does not fail on error

2 participants