Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Refactor unapplied transaction queue #7453

Merged
merged 41 commits into from
Jul 16, 2019
Merged

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Jun 3, 2019

Change Description

  • Before unapplied transactions from forked blocks, aborted blocks, and subjectively failed (out of time in block) transactions were tracked in controller and in the producer_plugin.
  • This design made it difficult to correctly track transactions as they were applied and unapplied.
  • Created an unapplied_transactions_queue for efficiently tracking these transactions.
    -- The unapplied_transactions_queue manages the order these transactions are re-applied via a FIFO queue.
  • The controller is no longer responsible for tracking these transactions as it is the producer_plugin responsibility to track them via the unapplied_transactions_queue.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@heifner heifner requested a review from arhag June 4, 2019 14:38
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
libraries/testing/tester.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
libraries/testing/tester.cpp Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
@NorseGaud
Copy link
Contributor

Should work with a merge from develop. That'll pick up the new changes for the CICD to work.

plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
libraries/testing/tester.cpp Outdated Show resolved Hide resolved
libraries/testing/tester.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
@heifner heifner requested a review from arhag July 16, 2019 19:50
@heifner heifner merged commit e549a6c into develop Jul 16, 2019
@heifner heifner deleted the refactor-unapplied-develop branch July 16, 2019 21:27
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.

3 participants