Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
970f421e
Unverified
Commit
970f421e
authored
Sep 20, 2021
by
Maurelian
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(batch-submitter): Ensure empty batches are not submitted
parent
5e97fd5d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
honest-lizards-change.md
.changeset/honest-lizards-change.md
+5
-0
batches.env
ops/envs/batches.env
+1
-1
.env.example
packages/batch-submitter/.env.example
+1
-1
run-batch-submitter.ts
packages/batch-submitter/src/exec/run-batch-submitter.ts
+5
-0
No files found.
.changeset/honest-lizards-change.md
0 → 100644
View file @
970f421e
---
'
@eth-optimism/batch-submitter'
:
patch
---
Ensure empty batches are not submitted
ops/envs/batches.env
View file @
970f421e
...
@@ -3,7 +3,7 @@ ADDRESS_MANAGER_ADDRESS=
...
@@ -3,7 +3,7 @@ ADDRESS_MANAGER_ADDRESS=
DEBUG=info*,error*,warn*,debug*
DEBUG=info*,error*,warn*,debug*
MAX_L1_TX_SIZE=90000
MAX_L1_TX_SIZE=90000
MIN_L1_TX_SIZE=
0
MIN_L1_TX_SIZE=
32
MAX_TX_BATCH_COUNT=50
MAX_TX_BATCH_COUNT=50
MAX_STATE_BATCH_COUNT=50
MAX_STATE_BATCH_COUNT=50
...
...
packages/batch-submitter/.env.example
View file @
970f421e
...
@@ -16,7 +16,7 @@ L1_NODE_WEB3_URL=http://localhost:9545
...
@@ -16,7 +16,7 @@ L1_NODE_WEB3_URL=http://localhost:9545
L2_NODE_WEB3_URL=http://localhost:8545
L2_NODE_WEB3_URL=http://localhost:8545
MAX_L1_TX_SIZE=90000
MAX_L1_TX_SIZE=90000
MIN_L1_TX_SIZE=
0
MIN_L1_TX_SIZE=
32
MAX_TX_BATCH_SIZE=50
MAX_TX_BATCH_SIZE=50
MAX_STATE_BATCH_COUNT=2000
MAX_STATE_BATCH_COUNT=2000
MAX_TX_BATCH_COUNT=250
MAX_TX_BATCH_COUNT=250
...
...
packages/batch-submitter/src/exec/run-batch-submitter.ts
View file @
970f421e
...
@@ -334,6 +334,11 @@ export const run = async () => {
...
@@ -334,6 +334,11 @@ export const run = async () => {
}
}
}
}
if
(
requiredEnvVars
.
MIN_L1_TX_SIZE
===
0
)
{
logger
.
error
(
'
Must configure a MIN_L1_TX_SIZE greater than 0
'
)
process
.
exit
(
1
)
}
const
clearPendingTxs
=
requiredEnvVars
.
CLEAR_PENDING_TXS
const
clearPendingTxs
=
requiredEnvVars
.
CLEAR_PENDING_TXS
const
l2Provider
=
injectL2Context
(
const
l2Provider
=
injectL2Context
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment