Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fixing last nonce values in case transaction is replaced #1359

Merged
merged 1 commit into from Jun 20, 2016

Conversation

tomusdrw
Copy link
Collaborator

When there was couple of transactions pending, and one of them (not the one with highest nonce) is replaced with new transaction with higher gas price the last_nonce was returning incorrect value.

@tomusdrw tomusdrw added the A0-pleasereview 🤓 Pull request needs code review. label Jun 20, 2016
self.move_matching_future_to_current(sender, current_nonce, current_nonce);
// This will keep consistency in queue
// Moves all to future and then promotes a batch from current:
self.remove_all(sender, current_nonce);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The logic in remove_all is the same - no changes here.

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 20, 2016
@arkpar arkpar merged commit 7e424d2 into master Jun 20, 2016
@tomusdrw tomusdrw deleted the lastnonce-fix branch June 22, 2016 06:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants