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

Implement price bump mechanism for transaction pool replacement. #928

Merged
merged 2 commits into from
May 15, 2020

Conversation

AbdelStark
Copy link
Contributor

@AbdelStark AbdelStark commented May 15, 2020

PR description

We should implement a new transaction replacement mechanism, similar to other client implementations.
Currently a new transaction (same user and same nonce) replaces an old one if the new gas price is higher than the old one. Other client implementations require the delta to be higher than a minimum percentage.
For instance this option is called pricebump in Geth implementation, configurable using --txpool.pricebump . This command line option is described as Price bump percentage to replace an already existing transaction and is defaulted to 10%.
The current PR introduces the price bump without making this option configurable. A follow up PR will then come after to expose this parameter to the CLI interface.

Fixed Issue(s)

Signed-off-by: Abdelhamid Bakhta [email protected]

@AbdelStark AbdelStark self-assigned this May 15, 2020
Copy link
Contributor

@matkt matkt left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Abdelhamid Bakhta <[email protected]>
@AbdelStark AbdelStark merged commit 9af8bf3 into hyperledger:master May 15, 2020
shemnon pushed a commit to shemnon/besu that referenced this pull request May 23, 2020
…erledger#928)

* Implement price bump mechanism for transaction pool replacement.

Signed-off-by: Abdelhamid Bakhta <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
macfarla pushed a commit to macfarla/besu that referenced this pull request Jun 3, 2020
…erledger#928)

* Implement price bump mechanism for transaction pool replacement.

Signed-off-by: Abdelhamid Bakhta <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
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