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

Add MaxTxGasWanted to filter out large gas txs #241

Closed
wants to merge 5 commits into from
Closed

Conversation

yzang2019
Copy link
Contributor

Describe your changes and provide context

Testing performed to validate your change

@@ -368,6 +368,10 @@ func (txmp *TxMempool) CheckTx(
return nil
}

func (txmp *TxMempool) shouldExclude(wtx *WrappedTx) bool {
return txmp.config.MaxTxGasWanted > 0 && wtx.gasWanted > txmp.config.MaxTxsBytes
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@yzang2019 yzang2019 closed this Aug 9, 2024
@yzang2019 yzang2019 deleted the yzang/SEI-7947 branch October 11, 2024 07:16
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