Skip to content

Conversation

@SayanKar
Copy link
Collaborator

@SayanKar SayanKar commented Oct 31, 2025

Summary

This PR adds support for the Granite network upgrade (ACP-226) by introducing new API methods and extending block header fields to enable more precise block timing and proposer VM compatibility.
ProposerVM API Integration:

New API Methods

Three new API methods have been added to support Granite-specific functionality:

  • proposervm.GetProposedHeight: Returns the node’s current proposer VM height.
    Supersedes platform.getProposedHeight for future compatibility.

  • proposervm.GetCurrentEpoch: Returns current epoch information from the proposer VM. Provides visibility into proposer state for block production.

  • platform.GetAllValidatorsAt: Returns validators and their weights across all L1s and the Primary Network at a specific P-Chain height. Useful for validator set snapshots and state queries.

Note: platform.getProposedHeight will remain available temporarily, but migration to proposervm.getProposedHeight is strongly recommended.

Block Header Extensions (ACP-226)

Two new block header fields have been added to support dynamic block time management under ACP-226:

  • timestampMilliseconds: (uint64) - Timestamp in milliseconds for more precise block timing
  • minDelayExcess (uint64) - Tracks the excess delay for dynamic block time adjustments

@vercel
Copy link

vercel bot commented Oct 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
avalanche-sdk-typescript Ready Ready Preview Comment Nov 3, 2025 3:53pm

@SayanKar SayanKar changed the title Sayan/add granite methods chore: add granite methods Nov 3, 2025
@SayanKar SayanKar merged commit 829908a into main Nov 3, 2025
7 checks passed
@SayanKar SayanKar deleted the sayan/add-granite-methods branch November 3, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants