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

Transaction Queue fix #2392

Merged
merged 1 commit into from
Sep 29, 2016
Merged

Transaction Queue fix #2392

merged 1 commit into from
Sep 29, 2016

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented Sep 29, 2016

When moving transactions between Future and Current it could happen that transaction with the same (Sender, Nonce) was already in the other queue.

My understanding is that such situation could happen when some transactions were not cleared from the queue:

  1. Import to Future (nonce1 > expected_nonce)
  2. Import to Current (nonce == expected_nonce == nonce1 + 1)
    This would leave an old transaction in Future (fn update_future would not remove it). Then in case of chain re-org same transaction nonce1 could be imported again to current causing a clash.

@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. B0-patch labels Sep 29, 2016
@tomusdrw tomusdrw mentioned this pull request Sep 29, 2016
@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Sep 29, 2016
@arkpar arkpar merged commit 01018b4 into master Sep 29, 2016
jacogr added a commit that referenced this pull request Oct 1, 2016
* js:
  signaturereg registered, remove hardcoding
  fixes for non-null returns
  update ABIs to latest deployed versions
  update Morden registry address (#2417)
  using arc (#2420)
  asterisk space
  removed redundant memcopy
  Update gitlab-ci
  Fixing logs-receipt matching (#2403)
  fix broken beta compilation
  Fixing transaction queue (#2392)
  separate mod for tests
  bloom filter crate
@arkpar arkpar deleted the txqueuefix branch October 3, 2016 15:35
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.

2 participants