This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Unapplied transaction queue performance #7686
Merged
Merged
Changes from 3 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
8f517ba
Add tests for duplicates
heifner 964cebe
Add clear_applied
heifner 4ad52cc
Clear applied on_block to avoid trying to applied already applied tra…
heifner 8667daa
No need to track unapplied if not SPECULATIVE
heifner 04821a5
Add aborted trxs to unapplied_transactions before push_block so trxs …
heifner c66bd0a
Missed removing capture on last commit
heifner 34cea56
Make unapplied_transaction_queue responsible for tracking db_read_mode
heifner 3752321
Change abort_block to always return applied transactions since unappl…
heifner e9b6775
Modify push_block to take a forked transactions callback so that prev…
heifner f8706ea
Modified add_forked to take a vector of transaction_metadata_ptr inst…
heifner 66c77ff
push_block now takes a forked_trxs_callback
heifner dc0f76c
push_block now takes a forked_trxs_callback
heifner 542fe66
Revert back to unapplied_transaction_queue taking a branch_type and b…
heifner 36a6fd3
Use an enum for processing mode of unapplied_transaction_queue. Set m…
heifner 10e725e
Remove unneeded include
heifner a58363c
Move unapplied_transaction_queue::set_mode to plugin_initialize
heifner 9723af5
add to front of incoming_transaction_queue when block time/net exhaus…
heifner 575dff6
emplace_front since that is the whole point
heifner 536b258
Merge branch 'develop' into unapplied-performance
heifner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do this in
producer_plugin::plugin_initiailize
. Since producer_plugin depends on chain_plugin, it is safe to get the read_mode from the controller at that point.