-
Notifications
You must be signed in to change notification settings - Fork 839
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
[Plugin API] - TransactionSelector - Notify plugins when transaction is selected/rejected #6005
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,17 @@ | |
*/ | ||
TransactionSelectionResult evaluateTransactionPostProcessing( | ||
PendingTransaction pendingTransaction, TransactionProcessingResult processingResult); | ||
|
||
/** | ||
* Method called when a transaction is selected to be added to a block. | ||
* | ||
* @param pendingTransaction The transaction that has been selected. | ||
*/ | ||
default void onTransactionSelected(final PendingTransaction pendingTransaction) {} | ||
/** | ||
* Method called when a transaction is rejected to be added to a block. | ||
* | ||
* @param pendingTransaction The transaction that has been rejected. | ||
*/ | ||
default void onTransactionRejected(final PendingTransaction pendingTransaction) {} | ||
Check notice Code scanning / CodeQL Useless parameter Note
The parameter 'pendingTransaction' is never used.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since there are many reasons a tx is not selected for inclusion, it make sense here to also pass the Then not sure about the word rejected, since a tx could not be selected, because it is invalid, so it is also removed from the pool, or just skipped because there is no more space or similarly does not fit with other limits in the current block, but could go in a future block |
||
} |
Check notice
Code scanning / CodeQL
Useless parameter Note