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
Description
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