-
Notifications
You must be signed in to change notification settings - Fork 871
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
Use PendingTransaction in BlockTransactionSelector #5966
Conversation
|
@@ -28,7 +28,8 @@ | |||
* Tracks the additional metadata associated with transactions to enable prioritization for mining | |||
* and deciding which transactions to drop when the transaction pool reaches its size limit. | |||
*/ | |||
public abstract class PendingTransaction { | |||
public abstract class PendingTransaction |
Check notice
Code scanning / CodeQL
Class has same name as super class
7d1bcf1
to
68cbc2c
Compare
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.
LGTM, I am wondering if it makes sense to have it named PooledTransaction
instead of PendingTransaction
, since PendingTransaction are transactions that are in the transaction pool and not confirmed yet. That would also match the methods GetPooledTransactions
and NewPooledTransactionHashes
as well as the EncodingContext in the transaction encoder
Signed-off-by: Fabio Di Fabio <[email protected]>
68cbc2c
to
5e62c01
Compare
@Gabriel-Trintinalia it seems that pending and pooled are both used as synonyms, here for example, but I have no objections if you want to evaluate a renaming |
Signed-off-by: Fabio Di Fabio <[email protected]> Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
PR description
This is just a refactoring, no functionality change, to have the
PendingTransaction
object during the selection of transactions, since in thePendingTransaction
there are additional metadata about the candidate transaction that can be used by the selection process, and more will be added in a next PR to better support priority senders.