Skip to content

Bedrock: fix new batcher, use sync status api, start from safe head#2897

Merged
mslipper merged 5 commits intodevelopfrom
batching-from-safe-head
Jun 30, 2022
Merged

Bedrock: fix new batcher, use sync status api, start from safe head#2897
mslipper merged 5 commits intodevelopfrom
batching-from-safe-head

Conversation

@protolambda
Copy link
Copy Markdown
Contributor

Previously the batcher would continue batch submitting from the L2 head.
However, if the sequencer runs while the batch submitter is offline, the L2 chain continues, and the batch-submitter will be skipping a part. This causes a reorg, after which the batch submitter can't recover without restart (since it didn't detect reorgs).

This PR fixes the above, to make restarting of sequencer and batcher work without so much disruption of the L2 chain.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jun 29, 2022

⚠️ No Changeset found

Latest commit: 1523b66

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jun 29, 2022

This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?

Copy link
Copy Markdown
Contributor

@trianglesphere trianglesphere left a comment

Choose a reason for hiding this comment

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

these changes look fine. Nice work marking the restarts way more efficient

Base automatically changed from batch-derivation to develop June 30, 2022 18:00
@protolambda protolambda force-pushed the batching-from-safe-head branch from 7e82232 to 1523b66 Compare June 30, 2022 20:34
@protolambda
Copy link
Copy Markdown
Contributor Author

Rebased onto develop, added SyncStatus go doc, and fixed import style.

@mslipper mslipper merged commit 13fe565 into develop Jun 30, 2022
@mslipper mslipper deleted the batching-from-safe-head branch June 30, 2022 20:39
theochap pushed a commit that referenced this pull request Dec 10, 2025
`check_ports_inner` binds both a UDP and TCP socket to the supplied IP &
PORT. This is invalid for binding to the advertised IP because the
advertised IP is usually an external IP (either or a load balancer or
the user's router when behind NAT at home or the machine's IP when
running in docker) rather than an IP that the kernel is able to bind to.
If the IP is not the same as the local IP of the context in which
kona-node is running, OS Error 99: Cannot assign requested address is
returned.

This fixes a regression introduced in #2805
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