Skip to content
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

Allow a transaction selection plugin to specify custom selection results #6190

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Nov 20, 2023

PR description

With this PR a transaction selection plugin can extend TransactionSelectionResult to implement its custom return values.
Plus a couple of log fixes.

Copy link

github-actions bot commented Nov 20, 2023

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.
  • I thought about the changelog and included a changelog update if required.
  • If my PR includes database changes (e.g. KeyValueSegmentIdentifier) I have thought about compatibility and performed forwards and backwards compatibility tests

@fab-10 fab-10 force-pushed the block-tx-selection-log-fixes branch from 0e80f70 to a1230fc Compare November 20, 2023 17:48
@fab-10 fab-10 changed the title Allow a plugin to specify custom transaction selection results Allow a transaction selection plugin to specify custom selection results Nov 20, 2023
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@fab-10 fab-10 force-pushed the block-tx-selection-log-fixes branch from a1230fc to a82a507 Compare November 20, 2023 17:50
@fab-10 fab-10 marked this pull request as ready for review November 21, 2023 09:42
Copy link
Contributor

@Gabriel-Trintinalia Gabriel-Trintinalia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -1189,4 +1192,48 @@ protected MiningParameters createMiningParameters(
.build())
.build();
}

private static class PluginTrasactionSelectionResult extends TransactionSelectionResult {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo here -> PluginTraNsactionSelectionResult

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, fixed

@fab-10 fab-10 enabled auto-merge (squash) November 21, 2023 10:57
@fab-10 fab-10 merged commit 569ef93 into hyperledger:main Nov 21, 2023
18 checks passed
@fab-10 fab-10 deleted the block-tx-selection-log-fixes branch November 21, 2023 11:36
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
…lts (hyperledger#6190)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
…lts (hyperledger#6190)


Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
…lts (hyperledger#6190)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
gfukushima pushed a commit to gfukushima/besu that referenced this pull request Dec 15, 2023
…lts (hyperledger#6190)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants