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

Fix mempool order with different currency tip #275

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

gastonponti
Copy link

We were calculating the tip of the cip64 txs for ordering with an arithmetic miscalculation.
Instead of getting the Tip as GasFeeCap - BaseFeeInCurrency, we were using GasFeeCap - BaseFee

Adding a test to avoid this scenario in the future

Fixes 765

miner/ordering_test.go Show resolved Hide resolved
@gastonponti gastonponti merged commit 4e467f1 into celo10 Nov 21, 2024
8 checks passed
@gastonponti gastonponti deleted the gastonponti/fix-mempool-order branch November 21, 2024 20:21
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