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

chore: simplify cost calc #12796

Merged
merged 2 commits into from
Nov 22, 2024
Merged

chore: simplify cost calc #12796

merged 2 commits into from
Nov 22, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Nov 22, 2024

use existing tx functions

@mattsse mattsse added C-debt Refactor of code section that is hard to understand or maintain A-tx-pool Related to the transaction mempool labels Nov 22, 2024
U256::from(t.max_fee_per_gas).saturating_mul(U256::from(t.gas_limit))
}
Transaction::Eip4844(t) => {
blob_sidecar = EthBlobTransactionSidecar::Missing;
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is now never set to Missing, should we still do it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh right

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@mattsse mattsse added this pull request to the merge queue Nov 22, 2024
Merged via the queue into main with commit 36db1c2 Nov 22, 2024
40 checks passed
@mattsse mattsse deleted the matt/simplify-cost-calc branch November 22, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tx-pool Related to the transaction mempool C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants