Skip to content

fix[dtl]: represent gas limit as a string to avoid issues with large gas limits#969

Merged
tynes merged 4 commits intodevelopfrom
kelvin/fix-gaslimit-bn
May 27, 2021
Merged

fix[dtl]: represent gas limit as a string to avoid issues with large gas limits#969
tynes merged 4 commits intodevelopfrom
kelvin/fix-gaslimit-bn

Conversation

@smartcontracts
Copy link
Copy Markdown
Contributor

Description
Represents gas limit as a string within DecodedSequencerBatchTransactions in order to avoid issues where particularly large gas limits would crash the DTL.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented May 27, 2021

🦋 Changeset detected

Latest commit: 12c2d09

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@eth-optimism/l2geth Patch
@eth-optimism/data-transport-layer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #969 (e781bf4) into develop (77108d3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #969   +/-   ##
========================================
  Coverage    82.21%   82.21%           
========================================
  Files           48       48           
  Lines         1895     1895           
  Branches       303      303           
========================================
  Hits          1558     1558           
  Misses         337      337           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77108d3...e781bf4. Read the comment docs.

Copy link
Copy Markdown
Contributor

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

So far so good - does this also need changes on the rollup client?

@tynes
Copy link
Copy Markdown
Contributor

tynes commented May 27, 2021

So far so good - does this also need changes on the rollup client?

I believe this is the change:

type decoded struct {
	Signature signature       `json:"sig"`
	Value     hexutil.Uint64  `json:"value"`
	GasLimit  uint64          `json:"gasLimit,string"`
	GasPrice  uint64          `json:"gasPrice"`
	Nonce     uint64          `json:"nonce"`
	Target    *common.Address `json:"target"`
	Data      hexutil.Bytes   `json:"data"`
}

It does seem to be working in the integration tests so perhaps its not needed?

@tynes
Copy link
Copy Markdown
Contributor

tynes commented May 27, 2021

@smartcontracts Could you add a changeset?

Copy link
Copy Markdown
Contributor

@tynes tynes left a comment

Choose a reason for hiding this comment

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

Do not merge without a changeset

@smartcontracts
Copy link
Copy Markdown
Contributor Author

Do not merge without a changeset

Running some load tests right now, will get a changeset here in about 10 mins

@smartcontracts smartcontracts marked this pull request as ready for review May 27, 2021 19:51
@smartcontracts smartcontracts requested a review from annieke as a code owner May 27, 2021 19:51
@tynes
Copy link
Copy Markdown
Contributor

tynes commented May 27, 2021

We currently do not have tests for replicas, I'm syncing a replica with this now and observing it working after 989a6eb

Getting a replica sync test is a high priority cc @annieke @snario

@tynes tynes merged commit f1b2731 into develop May 27, 2021
@tynes tynes deleted the kelvin/fix-gaslimit-bn branch May 27, 2021 21:17
theochap pushed a commit that referenced this pull request Dec 10, 2025
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