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

Use compressed tx size also when selecting txs from block creation #590

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

fab-10
Copy link
Collaborator

@fab-10 fab-10 commented Feb 9, 2024

@julien-marchand this PR uses the compressed tx size also when calculating the profitability during block creation, so it is aligned with the linea_estimateGas endpoint, is that correct?

FYI: @macfarla @pinges check private double getCompressedTxSize(final Transaction transaction) { for the integration of the gnarkCompression

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@fab-10
Copy link
Collaborator Author

fab-10 commented Feb 9, 2024

@powerslider powerslider added the sequencer Regards the sequencer algorithms label Feb 13, 2024
@fab-10 fab-10 removed the request for review from julien-marchand February 13, 2024 14:02
@fab-10 fab-10 enabled auto-merge (squash) February 13, 2024 14:02
@julien-marchand
Copy link
Member

this PR uses the compressed tx size also when calculating the profitability during block creation, so it is aligned with the linea_estimateGas endpoint, is that correct?

Yes, txpool acceptance criteria (using eth_sendRawTransaction or p2p), linea_estimateGas and block creation should all use the same compression mechanism. It is just the margin config that should change.

From what I understand, this PR aligns the behavior, and the PR to transform this ratio (size/5) into the actual compression is pending

Copy link
Contributor

@gauravahuja gauravahuja left a comment

Choose a reason for hiding this comment

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

lgtm, just the one question.

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@fab-10 fab-10 merged commit 8d7e99c into main Feb 13, 2024
6 checks passed
@fab-10 fab-10 deleted the always-use-tx-compressed-size-for-profitability branch February 13, 2024 15:54
letypequividelespoubelles pushed a commit that referenced this pull request Feb 21, 2024
)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sequencer Regards the sequencer algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants