Skip to content

Governed Gas Pool - #114

Merged
l-monninger merged 28 commits into
movementfrom
l-monninger/governed-gas-pool
Jan 27, 2025
Merged

Governed Gas Pool#114
l-monninger merged 28 commits into
movementfrom
l-monninger/governed-gas-pool

Conversation

@l-monninger

@l-monninger l-monninger commented Dec 16, 2024

Copy link
Copy Markdown

Summary

Introduces the governed_gas_pool designed in MIP-52 to the aptos_framework. When the feature GOVERNED_GAS_POOL is enabled, the transaction epilogue will deposit gas fees into the pool.

Outstanding

  1. The spec needs to be updated both for FA (something Aptos had not yet done) and governed gas pool usage. Or else new tests need to be configured which do not yet have a template.
  2. The use of the governed_gas_pool w.r.t to epoch boundaries needs to validated in the corresponding full node PR.
  3. The governed_gas_pool feature path does not account or allow for any net positive transactions as is clear in the flow control in transaction_validation.move. Whether this is appropriate still needs to be validated.

@l-monninger l-monninger mentioned this pull request Jan 8, 2025
15 tasks
@0xmovses 0xmovses closed this Jan 13, 2025
@0xmovses 0xmovses reopened this Jan 13, 2025
@0xmovses
0xmovses marked this pull request as ready for review January 13, 2025 18:49
@0xmovses 0xmovses assigned 0xmovses and unassigned 0xmovses Jan 27, 2025
@0xmovses
0xmovses self-requested a review January 27, 2025 03:06
if (amount_to_burn > storage_fee_refunded) {
let burn_amount = amount_to_burn - storage_fee_refunded;
transaction_fee::burn_fee(gas_payer, burn_amount);
if (features::governed_gas_pool_enabled()) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants