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

fix(op-batcher): solve race condition of BatchSubmitter #5

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

bnoieh
Copy link
Contributor

@bnoieh bnoieh commented Jun 13, 2023

BatchSubmitter.publishTxToL1 and BatchSubmitter.handleReceipt access state concurrently, which will cause op-batcher panic:

fatal error: concurrent map writes

… and handleReceipt access state concurrently
Copy link
Collaborator

@owen-reorg owen-reorg left a comment

Choose a reason for hiding this comment

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

LGTM

@owen-reorg owen-reorg merged commit 3156060 into release/0.1.1 Jun 15, 2023
owen-reorg added a commit that referenced this pull request Sep 26, 2023
* op-batcher: Add metrics for pending L2 transaction data size (#5797)

* feat(op-node): Finalize Mainnet Rollup Config [release branch] (#5905)

* copy over develop chainsgo

* stage rollup config changes

* final rollup config values

* fix(op-batcher): solve race condition of BatchSubmitter publishTxToL1 and handleReceipt access state concurrently (#5)

* chore: update readme, add testnet assets (#9)

* chore: update readme, add testnet assets

* doc: clarify readme

* ci: add the ci code used to package and release docker images (#11)

* ci: add the ci code used to package and release docker images (#7)

* ci: add the ci code used to package and release docker images

Co-authored-by: Welkin <welkin.b@nodereal.com>

* fix: add latest tag for docker image (#9)

Co-authored-by: Welkin <welkin.b@nodereal.com>

* try to use cache for docker build (#10)

Co-authored-by: Welkin <welkin.b@nodereal.com>

---------

Co-authored-by: Welkin <welkin.b@nodereal.com>

* feat(ci): add ci workflow

* fix

* fix

* update

* update

* skip fail test temporarily

* add batcher/proposer

* add e2e

* skip fail e2e case temporary

* add op-node-lint

* fix lint

* add batcher/proposer lint

* test junit-report

* add junit report for all

* adjust parallel to 2 for avoiding fail

* add needs for job serial execution

* use testname format to simplify result

---------

Co-authored-by: Joshua Gutow <jgutow@oplabs.co>
Co-authored-by: refcell.eth <abigger87@gmail.com>
Co-authored-by: bnoieh <135800952+bnoieh@users.noreply.github.com>
Co-authored-by: Owen <owen.h@nodereal.io>
Co-authored-by: Welkin <welkin.b@nodereal.com>
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