Skip to content

Polygon-SDK accepts transactions with an invalid gas limit as valid transactions #294

Discussion options

You must be logged in to vote

Hey @AzulPretoBranco,

Thank you for reaching out.

So far what you've described is normal behavior - the transaction is accepted into the TxPool of the Polygon SDK but is discarded when it is attempted to be applied.

This is because block limits are enforced during transaction execution when the block is being built, and not at the point where you're adding the transaction - which may or may not succeed for whatever reason.

The reason block limits are not checked in transaction addition is because these are consensus specific - the TxPool shouldn't care about whether or not the transaction can be executed if it passes the basic checks to be in the pool in the first place.

Apps like Metamas…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@AzulPretoBranco
Comment options

@0xAleksaOpacic
Comment options

@AzulPretoBranco
Comment options

Answer selected by AzulPretoBranco
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #292 on December 16, 2021 23:11.