Skip to content
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

Validation Gas Fees #665

Draft
wants to merge 2 commits into
base: l-monninger/high-sequence-number-dos
Choose a base branch
from

Conversation

l-monninger
Copy link
Collaborator

Summary

Integrates validation_only gas fee into maptos_opt_executor and adds tests.

Testing

  1. Unit and e2e tests covering gas charges.

Outstanding issues

  1. Tests are still WIP.

@l-monninger l-monninger changed the base branch from main to l-monninger/high-sequence-number-dos October 7, 2024 13:02
@@ -260,6 +265,24 @@ mod tests {
SignedTransaction::new(raw_transaction, public_key, Ed25519Signature::dummy_signature())
}

fn create_signed_transaction_for_account(
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like the only significant chunk of code that should be performing validation, but I'm not exactly seeing gas fees for validation 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's in Aptos Core. What you're looking at is a test.

Copy link
Contributor

@andyjsbell andyjsbell left a comment

Choose a reason for hiding this comment

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

a small nit but lgtm

// Initialize a root account using a predefined keypair and the test root address.
let root_account = LocalAccount::new(
aptos_test_root_address(),
AccountKey::from_private_key(context.config().chain.maptos_private_key.clone()),
Copy link
Contributor

Choose a reason for hiding this comment

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

We may want to fix this smelly one at some point in a new PR

@l-monninger
Copy link
Collaborator Author

Marking this as draft for reasons discussed internally.

@l-monninger l-monninger marked this pull request as draft October 18, 2024 10:55
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.

3 participants