Skip to content

Implement CommitFinalizeFromBuffer for Direct clusters #258

Description

@snawaz

Goal

Implement CommitFinalizeFromBuffer for Direct clusters in v2.

The instruction commits and applies an account update from a completed StateBuffer without starting the fraud-proof flow.

Why

CommitFinalize can carry small updates in its instruction data, but large payloads must be uploaded over one or more WriteStateBuffer calls. Direct clusters need a finalization instruction that consumes that shared buffer format without creating a pending commitment or challenge window.

Scope

Reference

PR #141 explored an earlier buffer-based implementation. Its useful validation and zero-copy ideas can be reused, but its legacy account model and unfinished variants are not the required design.

Outcome

A Direct cluster can upload a large account update in chunks and then commit and apply it through one v2 finalization instruction.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions