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

EVM-805 TxPool assumes all transactions are Legacy when checking for re-priceaction replacement GasPrice comparison bug #1848

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

igorcrevar
Copy link
Contributor

Description

It appears it’s currently impossible to reprice Dynamic Fee transactions (i.e., EIP-1559 txs).
The check in the txpool only takes into account GasPrice, which means that reprice attempts are rejected because nil == nil and the price comparison appears to be equal.Also, if the re-price transaction is a Legacy transaction, the application does a nil deference and it goes into a panic. I’m certain (although I haven’t tested it) the same will happen if a Legacy transaction is repriced by a Dynamic Fee transaction.

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the relevant labels
  • I have updated the official documentation
  • I have added sufficient documentation in code

Testing

  • I have tested this code with the official test suite
  • I have tested this code manually

@igorcrevar igorcrevar added the bug fix Functionality that fixes a bug label Aug 24, 2023
@igorcrevar igorcrevar requested a review from a team August 24, 2023 13:54
@igorcrevar igorcrevar self-assigned this Aug 24, 2023
@igorcrevar igorcrevar force-pushed the feature/EVM-799_tx_replacement_bug_fix branch from 927748e to f52953f Compare August 24, 2023 13:57
@igorcrevar igorcrevar changed the title EVM-799 Transaction replacement GasPrice comparison bug EVM-805 TxPool assumes all transactions are Legacy when checking for re-priceaction replacement GasPrice comparison bug Aug 24, 2023
@Nemanja0x Nemanja0x self-requested a review August 25, 2023 14:18
@igorcrevar igorcrevar merged commit 8a96d17 into develop Aug 25, 2023
6 checks passed
@igorcrevar igorcrevar deleted the feature/EVM-799_tx_replacement_bug_fix branch August 25, 2023 15:14
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fix Functionality that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants