Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Optimize execution gas usage #53

Open
@mpetrun5

Description

@mpetrun5

Currently, we fetch and prove storage roots each proposal which costs per proposal when batched about 400k gas.
We need to avoid that cost and calculate that only once.

Implementation details

Calculate the necessary storage root before looping through the proposals and use that to verify the proposal with.
All the proposals should have the same source and security model.

Testing details

  • unit tests

Acceptance Criteria

  • cost when batching the next proposal should only include the cost to verify the proof against the precalculated storage root

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions