Skip to content

[docs] Remove validator set change query from block_search endpoint examples #3266

Closed

Description

@dasanchez

Hi! The block_search endpoint has examples listed here:

They list both a val_set.num_changed > 0 and a valset.changed > 0 query, but neither seems to work with Gaia v17.2.0 (CometBFT v0.37.6).
Are these queries still active, or have they been deprecated?

A delegation went through at height 6884760 in the ICS testnet, triggering a valset change:

curl -s "https://rpc.provider-sentry-01.ics-testnet.polypore.xyz/block_results?height=6884760" | jq '.result.validator_updates | length'
1

If I try to search for that block using the valset.changed>0 query with block_search, I don't get the 6884760 block in the results:

curl -s "https://rpc.provider-sentry-01.ics-testnet.polypore.xyz/block_search?query=\"block.height>6884759%20AND%20block.height<6884761\"" | jq '.result.total_count' 
"1"

curl -s "https://rpc.provider-sentry-01.ics-testnet.polypore.xyz/block_search?query=\"block.height>6884759%20AND%20block.height<6884761%20AND%20valset.changed>0\"" | jq '.result.total_count'
"0"

Thanks!

Activity

  1. added
    bug
    needs-triage
    on Jun 26, 2024
  2. self-assigned this
    on Jul 2, 2024
  3. added a commit that references this issue on Jul 2, 2024
    0ee3f43
  4. melekes commented on Jul 2, 2024

    @melekes
    Collaborator
  5. moved this from Todo to Ready for Review in CometBFTon Jul 2, 2024
  6. moved this from Ready for Review to Approved in CometBFTon Jul 2, 2024
  7. added this to the 2024-Q3 milestone on Jul 2, 2024
  8. added
    documentation
    and removed
    needs-triage
    on Jul 2, 2024
  9. added a commit that references this issue on Jul 3, 2024
    8f659c5
  10. moved this from Approved to Done in CometBFTon Jul 3, 2024
  11. added 3 commits that reference this issue on Jul 3, 2024
    a1bffbe
    5615e6e
    bb99cb0
  12. added 3 commits that reference this issue on Jul 3, 2024
    b56beec
    eea0ec1
    3f43881
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdocumentationrpc

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions