Skip to content

Support multiple transactions in batch submitter#1993

Merged
mslipper merged 8 commits intoethereum-optimism:developfrom
mslipper:feat/bss-multiple-txs
Jan 7, 2022
Merged

Support multiple transactions in batch submitter#1993
mslipper merged 8 commits intoethereum-optimism:developfrom
mslipper:feat/bss-multiple-txs

Conversation

@mslipper
Copy link
Collaborator

@mslipper mslipper commented Jan 7, 2022

  • feat: add telemetry to go batch-submitter
  • feat: cache go BSS txn serialization
  • chore: prepare for iterative batch-tx size reduction
  • feat: submit multiple sequencer txs per batch
  • Code review updates

cfromknecht and others added 6 commits December 14, 2021 01:53
This commit places the batch sequencer tx size check inside of a for
loop so that the we can continue to whittle away batch tx sizes until
satisfying the configured maximum. This doesn't result in a behavioral
change, as the for loop exits after the first iteration. This is done to
make the behavioral changes more apparent in subsequent commits.
@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2022

⚠️ No Changeset found

Latest commit: 5d3bb98

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

@codecov-commenter
Copy link

codecov-commenter commented Jan 7, 2022

Codecov Report

Merging #1993 (5d3bb98) into develop (cebc747) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1993   +/-   ##
========================================
  Coverage    74.58%   74.58%           
========================================
  Files           79       79           
  Lines         2554     2554           
  Branches       401      401           
========================================
  Hits          1905     1905           
  Misses         649      649           
Flag Coverage Δ
batch-submitter 62.50% <ø> (ø)
contracts 90.48% <ø> (ø)
core-utils 57.50% <ø> (ø)
data-transport-layer 38.64% <ø> (ø)
message-relayer 70.86% <ø> (ø)
sdk 88.38% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 cebc747...5d3bb98. Read the comment docs.

oldLen := len(batchElements)
newBatchElementsLen := (oldLen * 9) / 10
batchElements = batchElements[:newBatchElementsLen]
log.Info("pruned batch", "old_num_txs", oldLen, "new_num_txs", newBatchElementsLen)
Copy link
Contributor

Choose a reason for hiding this comment

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

It could be helpful to include the name in this logline so we know which batch submitter process its coming from, similar to line 143:

	log.Info(name+" submitting batch tx", "start", start, "end", end,
		"gasPrice", gasPrice)

@tynes
Copy link
Contributor

tynes commented Jan 7, 2022

Generally looks good to me, will approve if the itests all pass

@mslipper mslipper marked this pull request as ready for review January 7, 2022 23:22
@mslipper mslipper merged commit 94d8320 into ethereum-optimism:develop Jan 7, 2022
theochap pushed a commit that referenced this pull request Dec 10, 2025
)

## Overview

Introduces backpressure within the DA watcher channels. This change
ensures that if the consumers of the DA watcher events (L1
{head/finalized} updates, unsafe block signer updates) do not process
their events in a timely manner, the DA watcher doesn't endlessly fill
up the channel queue, and yields until the other actors can process its
pending updates.

progress on #1993
theochap pushed a commit that referenced this pull request Dec 10, 2025
theochap pushed a commit that referenced this pull request Jan 14, 2026
…-rs/kona#2030)

## Overview

Introduces backpressure within the DA watcher channels. This change
ensures that if the consumers of the DA watcher events (L1
{head/finalized} updates, unsafe block signer updates) do not process
their events in a timely manner, the DA watcher doesn't endlessly fill
up the channel queue, and yields until the other actors can process its
pending updates.

progress on #1993
theochap pushed a commit that referenced this pull request Jan 14, 2026
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