Skip to content

Conversation

@chenquanyu
Copy link
Collaborator

Modify priceHeap to prioritize encrypt wrapper tx.

@steven1227 steven1227 requested a review from roman-khimov August 2, 2024 09:24

// IsEncWrapperTx Checks whether a transaction is a wrapper transaction of an encrypted transaction
func IsEncWrapperTx(tx *types.Transaction) bool {
// TODO: now we only check to address is reward contract, consider add gasPrice and data check in future
Copy link
Contributor

Choose a reason for hiding this comment

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

For IsEnc it's likely sufficient, we shouldn't care much about data (unless there is some unencrypted part of it) and gasPrice should be checked elsewhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

BTW, some fee check can be important to prevent DOSing the pool with minimally priced transactions (that can evict nonencrypted ones). But that's not for IsEnc as well, it's a policy in its essense.

@AnnaShaleva
Copy link
Member

Not relevant anymore.

@txhsl txhsl deleted the antimev-mempool branch June 27, 2025 10:36
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.

4 participants