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

add legacy option to send legacy txs #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zzzzzzch
Copy link

Hi, this is a great perf tool. I found that spammer sends EIP-1559 txs by default, which is fine, but sometimes eth-forked/custom node clients may not support EIP-1559 and therefore it is needed to be specified to send legacy txs.
So this PR adds the legacy option to specify sending legacy txs.

please review and feel free to comment.

@zeroXbrock
Copy link
Member

hey @zzzzzzch thanks for the PR! Sorry it took me so long to get back to you -- I recently did a bunch of refactoring and wasn't sure how this would fit until later.

This is a good idea, but I think it would be even better if instead of a boolean for legacy, we had an enum to support many tx types. That way, we don't have to add additional params later on; just more enum values.

The codebase has been shuffled around quite a bit since you pushed this so you might want to start this on a fresh branch and cherry-pick the code you need from this PR, but it's up to you :) Looking forward to your next commits!

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