馃殌 Feature Request
Move the Governed Gas Pool鈥檚 accounting off direct Coin mutations and onto Aggregator V2 counters so gas-fee deposits, treasury inflows, and staking-reward withdrawals can execute in parallel without read/write conflicts.
Motivation
Currently every gas-fee deposit or reward withdrawal locks the pool鈥檚 CoinStore, limiting throughput during heavy traffic. Using Aggregator V2 lets us keep precise running totals without forcing transactions to serialize, improving gas-collection scalability.
Pitch
- Extend GovernedGasPoolExtension with Aggregator V2 fields (e.g., gas-fee total, treasury total).
- Initialize those aggregators during initialize / initialize_governed_gas_pool_extension.
- Update deposit/withdraw functions to:
a) continue moving the actual coins/FA into the pool
b) mirror the amount into the corresponding aggregator via add/sub
- Expose new views (or event data) so governance tools can read aggregator snapshots without blocking parallelism.
- Guard changes behind the existing FA feature flag (if needed) and migrate counters during init.
Willing to open a PR?
Yes, once the plan is approved.
Alternatives
- Stay on plain CoinStore bookkeeping (keeps sequential bottlenecks).
- Use off-chain accounting only (loses on-chain verifiability).
Additional context
- Docs to touch: governed_gas_pool.move, .spec.move, and aptos-framework/doc/governed_gas_pool.md.
- Tests: extend initialize_for_test, treasury/gas deposit tests, and add aggregator-specific checks.
馃殌 Feature Request
Move the Governed Gas Pool鈥檚 accounting off direct Coin mutations and onto Aggregator V2 counters so gas-fee deposits, treasury inflows, and staking-reward withdrawals can execute in parallel without read/write conflicts.
Motivation
Currently every gas-fee deposit or reward withdrawal locks the pool鈥檚 CoinStore, limiting throughput during heavy traffic. Using Aggregator V2 lets us keep precise running totals without forcing transactions to serialize, improving gas-collection scalability.
Pitch
a) continue moving the actual coins/FA into the pool
b) mirror the amount into the corresponding aggregator via add/sub
Willing to open a PR?
Yes, once the plan is approved.
Alternatives
Additional context