Skip to content

Conversation

@jamillambert
Copy link
Collaborator

waitforblock, waitforblockheight and waitfornewblock were added to the Core API docs in v30 under blockchain. The RPCs have been there since before v17.

Add the RPCs to v17, and add to the types table in v30.

  • The hidden module in v21 had a copy-paste error and stated it was for the generating section.
    • Update the documentation to state that the methods are hidden.
  • blockchain__get_tx_out_proof__modelled is identical to blockchain__verify_tx_out_proof__modelled, and the method gettxoutproof is tested above in blockchain__get_tx_out_proof.
    • Remove the redundant test.
  • The model part of the verify_tx_out_proof test was in it's own function that the test function called. Other tests all check the model in the same test.
    • Combine them into one function.
    • Place it in the correct location.
    • Remove associated import.
  • Add waitforblock, waitforblockheight and waitfornewblock methods to v17. They are hidden until v30 with no changes.

The hidden module had a copy-paste error and stated it was for the
generating section.

Update the documentation to state that the methods are hidden and not
shown in the COre API docs.
blockchain__get_tx_out_proof__modelled is identical to
blockchain__verify_tx_out_proof__modelled, and the method gettxoutproof
is tested above in blockchain__get_tx_out_proof.

Remove the redundant test.
The model part of the verify_tx_out_proof test was in it's own function
that the test function called. Other tests all check the model in the
same test.

Combine them into one function. Place it in the correct location.
Remove associated import.
@jamillambert
Copy link
Collaborator Author

jamillambert commented Oct 16, 2025

Converting to draft to fix CI test fail that does not happen locally.

Actually it does occur locally, I only checked 17 and 30. For some reason only v23-26 fail.

Update: Problem fixed, although I don't understand why it only affected v23-26.

Add waitforblock, waitforblockheight and waitfornewblock methods to v17.
They are hidden until v30 with no changes.
@jamillambert jamillambert marked this pull request as ready for review October 16, 2025 08:15
@jamillambert
Copy link
Collaborator Author

jamillambert commented Oct 16, 2025

The three RPCs have the same return shape. I made 3 seperate types since they only have a block hash and height in them it made no sense to have a seperate internal type that only has those 2 values in it. I considered having one type e.g. WaitForBlock and the other two use that, but then the type name doens't match the RPC name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant