BlockTransactionSelector refactoring#5931
Merged
Gabriel-Trintinalia merged 12 commits intohyperledger:mainfrom Sep 28, 2023
Merged
BlockTransactionSelector refactoring#5931Gabriel-Trintinalia merged 12 commits intohyperledger:mainfrom
Gabriel-Trintinalia merged 12 commits intohyperledger:mainfrom
Conversation
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
|
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
macfarla
reviewed
Sep 25, 2023
...n/java/org/hyperledger/besu/ethereum/blockcreation/txselection/BlockTransactionSelector.java
Outdated
Show resolved
Hide resolved
.../hyperledger/besu/ethereum/blockcreation/txselection/selectors/PriceTransactionSelector.java
Outdated
Show resolved
Hide resolved
.../hyperledger/besu/ethereum/blockcreation/txselection/selectors/PriceTransactionSelector.java
Outdated
Show resolved
Hide resolved
...n/java/org/hyperledger/besu/ethereum/blockcreation/txselection/BlockTransactionSelector.java
Outdated
Show resolved
Hide resolved
| private final List<TransactionSelectorFactory> transactionSelectorFactory; | ||
|
|
||
| public BlockTransactionSelectorFactory( | ||
| final List<TransactionSelectorFactory> transactionSelectorFactory) { |
Contributor
There was a problem hiding this comment.
is this a list because we're planning to add plugin factory here?
Contributor
Author
There was a problem hiding this comment.
yes, the next step is to change how we pass the factories to the block transaction selector
...n/java/org/hyperledger/besu/ethereum/blockcreation/txselection/BlockTransactionSelector.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
fab-10
reviewed
Sep 25, 2023
Contributor
fab-10
left a comment
There was a problem hiding this comment.
I share the goal of the PR, since it adds more flexibility to the customization to the way we select txs for different use cases, I have some comments related to code readability, renaming to better express the intent of some methods, and trying to make it less error prone for future changes.
...n/java/org/hyperledger/besu/ethereum/blockcreation/txselection/BlockTransactionSelector.java
Outdated
Show resolved
Hide resolved
...n/java/org/hyperledger/besu/ethereum/blockcreation/txselection/BlockTransactionSelector.java
Show resolved
Hide resolved
...n/java/org/hyperledger/besu/ethereum/blockcreation/txselection/BlockTransactionSelector.java
Outdated
Show resolved
Hide resolved
...n/java/org/hyperledger/besu/ethereum/blockcreation/txselection/BlockTransactionSelector.java
Show resolved
Hide resolved
...perledger/besu/ethereum/blockcreation/txselection/selectors/AbstractTransactionSelector.java
Outdated
Show resolved
Hide resolved
...perledger/besu/ethereum/blockcreation/txselection/selectors/AbstractTransactionSelector.java
Outdated
Show resolved
Hide resolved
...erledger/besu/ethereum/blockcreation/txselection/selectors/BlobPriceTransactionSelector.java
Outdated
Show resolved
Hide resolved
...edger/besu/ethereum/blockcreation/txselection/selectors/BlockTransactionSelectorFactory.java
Outdated
Show resolved
Hide resolved
...perledger/besu/ethereum/blockcreation/txselection/selectors/AbstractTransactionSelector.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
fab-10
approved these changes
Sep 26, 2023
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
jflo
pushed a commit
to jflo/besu
that referenced
this pull request
Nov 10, 2023
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net> Signed-off-by: Justin Florentine <justin+github@florentine.us>
NickSneo
pushed a commit
to NickSneo/besu
that referenced
this pull request
Nov 12, 2023
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR description
BlockTransactionSelectorrefactoring:TransactionSelectionResultsto its own class.BlockTransactionSelectorto their own classesBlockTransactionSelectorwill use a list of selectors to evaluate the transactionNext steps:
TransactionProcessingResult(or at least a part of it the to Plugin interface)OperationTracerfrom the TPR and pass it to the plugin