Skip to content

feat: add separate realloc instruction when data growth exceeds Solana limit (10KB) #878

@snawaz

Description

@snawaz

Request

Solana does not allow account reallocation of more than ~10KB in a single instruction.

So if:

(committed_account_datalen - base_account_datalen) > 10KB

then all commit instruction variants will fail due to the runtime realloc limit.

To handle this scenario, the committor-service should detect large data growth and issue one or more dedicated realloc instructions before sending the commit instruction. This keeps commit instructions within Solana’s realloc constraints and avoids runtime failures!

It's a low-priority issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priorityenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions