Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Optimise TransactionPool.addRemoteTransaction #1448

Merged
merged 2 commits into from
May 15, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

The transaction pool doesn't add remote transactions until we're in sync. Previously this check was performed after sorting and beginning to iterate the transactions. Move the check to the very start of the method so we bail out as soon as possible.

Additionally, since we no longer reject transactions where the nonce is too high, we don't need to sort the transactions by nonce.

…stead of after we sort by nonce and begin iterating.
This was only required because we previously rejected transactions where the nonce was too high.
@ajsutton ajsutton merged commit 093e1a5 into PegaSysEng:master May 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants