Skip to content

Proposervm API #4029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open

Proposervm API #4029

wants to merge 54 commits into from

Conversation

cam-schultz
Copy link
Contributor

@cam-schultz cam-schultz commented Jun 23, 2025

Why this should be merged

Adds a path /proposervm to all ProposerVM chains (C, P, subnet-evm) that exposes the following methods:

  • proposervm.getProposedHeight
  • proposervm.getProposerBlockWrapper

This API will also be useful for exposing P-Chain epoch views if ACP-181 is adopted.

How this works

Overrides CreateHandlers in proposervm.VM to call the inner VM's CreateHandlers method, and register the /proposervm endpoint.

How this was tested

Manual testing on a local network. Meaningful unit tests would likely require refactoring package platformvm to expose internal structs that are used to setup a concrete VM. Happy to take suggestions on alternatives.

Need to be documented in RELEASES.md?

Yes

@cam-schultz cam-schultz marked this pull request as ready for review June 23, 2025 20:40
@ylg-avalabs ylg-avalabs changed the base branch from master to proposervm-epochs August 13, 2025 04:48
@maru-ava maru-ava removed their request for review August 14, 2025 05:45
@geoff-vball geoff-vball changed the base branch from proposervm-epochs to master August 18, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

6 participants