-
Notifications
You must be signed in to change notification settings - Fork 109
feat: deprecate ggp and add e2e tests to check for correct gas collection using collect_fee #1295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
process-compose -f process-compose/movement-full-node/process-compose.test-e2e-verify-collect-fee.yml up --wait --follow | ||
|
||
test-e2e-framework-upgrade-collect-gas-fees: | ||
process-compose -f process-compose/movement-full-node/process-compose.test-e2e-framework-upgrade-collect-gas-fees.yml up --wait --follow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this. E2E tests require a full-node setup and faucet. We are probably going to run it with
just movement-full-node native build.setup.test-e2e-verify-collect-fee
just movement-full-node native build.setup.
test-e2e-framework-upgrade-collect-gas-fees
format!("unknown release string: {}", release).into(), | ||
) | ||
.into()), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code formatting is off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see where the ggp is deprecated. In the aptos-framework-pre-l1-merge-release
crate it's enable.
movement/protocol-units/execution/maptos/framework/releases/pre-l1-merge/src/cached.rs
Line 59 in 14c952a
enable_feature_flags.push(AptosFeatureFlag::GOVERNED_GAS_POOL); |
Perhaps it's in the Aptos PR, can you link it in the description?
faucet_client | ||
.create_account(beneficiary.address()) | ||
.await | ||
.context("Failed to create beneficiary account via faucet")?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On mainnet there's no faucet. You test for the sender, but not for the beneficiary? I think this call fail on mainnet. I think you don't need to create the account to send it some token.
Another remarks, you should send less than 1000 move because on mainnet they will be lost. Beneficiary is a random generated account.
In fact, you don't expect to run the test on mainnet so we don't verify the change work well on mainnet in this case. Perhaps during the migration we should test these change apply correctly. I add some strange issue with the epoch duration change where I got different behavior depending on the network.
So passing the test on a mainnet fork should be a good thing, but in this case you don't care the token amount. I'll try to pass it on a mainnet fork.
genesis.set_sequence_number(acct.inner().sequence_number); | ||
} | ||
let txh = coin_client | ||
.transfer(&mut genesis, sender.address(), 1_000_000, None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use less move they will be lost in mainnet.
I've tested to update mainnet db. The |
a7b7117
to
14c952a
Compare
Summary
networks
,misc
.Deprecating governed gas pool and replacing gas collection logic with
transaction_fee::collect_fee
module using a fw upgrade. Added e2e tests to confirm deprecation and correct fee collection values and to query for the module on chain.Changelog
0xIcarus/ggp-deprecate
onmovementlabsxyz/aptos-core
to allow featureCOLLECT_AND_DISTRIBUTE_GAS_FEES
to be voted through.Testing
New e2e tests added to verify if fee collection behavior matches expectations
Run using
nix develop --command bash -c "just movement-full-node native build.setup.test-e2e-verify-collect-fee --keep-project"
Outstanding issues