-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlockTransactionSelector refactoring #5931
BlockTransactionSelector refactoring #5931
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>
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.
think it makes sense. would be good to get @fab-10 to take a look also
...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) { |
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.
is this a list because we're planning to add plugin factory here?
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.
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>
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.
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>
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.
ok with me
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: Justin Florentine <justin+github@florentine.us>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
PR description
BlockTransactionSelector
refactoring:TransactionSelectionResults
to its own class.BlockTransactionSelector
to their own classesBlockTransactionSelector
will use a list of selectors to evaluate the transactionNext steps:
TransactionProcessingResult
(or at least a part of it the to Plugin interface)OperationTracer
from the TPR and pass it to the plugin