Skip to content

l2geth: fix startup logic for repairing queue index#2114

Merged
mslipper merged 1 commit intodevelopfrom
fix/l2geth-startup-logic
Feb 28, 2022
Merged

l2geth: fix startup logic for repairing queue index#2114
mslipper merged 1 commit intodevelopfrom
fix/l2geth-startup-logic

Conversation

@tynes
Copy link
Contributor

@tynes tynes commented Feb 1, 2022

Description
Fix a comparison on startup

@changeset-bot
Copy link

changeset-bot bot commented Feb 1, 2022

🦋 Changeset detected

Latest commit: bc342ec

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

This PR includes changesets to release 1 package
Name Type
@eth-optimism/l2geth 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

@tynes tynes force-pushed the fix/l2geth-startup-logic branch from 866ce53 to 9043e45 Compare February 1, 2022 20:13
@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2022

Codecov Report

Merging #2114 (2355859) into develop (40ffd24) will decrease coverage by 0.74%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2114      +/-   ##
===========================================
- Coverage    73.37%   72.63%   -0.75%     
===========================================
  Files           85       85              
  Lines         2836     2872      +36     
  Branches       464      469       +5     
===========================================
+ Hits          2081     2086       +5     
- Misses         755      786      +31     
Flag Coverage Δ
batch-submitter 62.63% <ø> (ø)
contracts 90.48% <ø> (ø)
core-utils 59.94% <ø> (ø)
data-transport-layer 37.74% <ø> (-0.91%) ⬇️
message-relayer 70.86% <ø> (ø)
sdk 68.99% <ø> (-3.65%) ⬇️

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

Impacted Files Coverage Δ
packages/sdk/src/cross-chain-messenger.ts 50.66% <0.00%> (-3.62%) ⬇️
packages/sdk/src/cross-chain-provider.ts 75.11% <0.00%> (-3.60%) ⬇️
packages/sdk/src/utils/index.ts 100.00% <0.00%> (ø)
packages/data-transport-layer/src/utils/index.ts 100.00% <0.00%> (ø)
.../l1-ingestion/handlers/sequencer-batch-appended.ts 21.53% <0.00%> (ø)
...ckages/data-transport-layer/src/utils/constants.ts
packages/sdk/src/utils/merkle-utils.ts 27.27% <0.00%> (ø)

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 40ffd24...2355859. Read the comment docs.

@tynes tynes force-pushed the fix/l2geth-startup-logic branch from 9043e45 to 2355859 Compare February 2, 2022 21:14
@mslipper mslipper force-pushed the fix/l2geth-startup-logic branch from 2355859 to bc342ec Compare February 4, 2022 17:25
Copy link
Contributor

@cfromknecht cfromknecht left a comment

Choose a reason for hiding this comment

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

LGTM, what are the implications here?

@tynes
Copy link
Contributor Author

tynes commented Feb 28, 2022

The implications here are that the original logic for fixing the queue was broken, it would always hit the else clause since they would never match in the initial if clause. This exists to prevent deposits from being skipped/double ingested on restarts when the deposit is partway through the ingestion pipeline

@mslipper mslipper merged commit db81b8e into develop Feb 28, 2022
@mslipper mslipper deleted the fix/l2geth-startup-logic branch February 28, 2022 23:32
theochap pushed a commit that referenced this pull request Dec 10, 2025
## Overview

Standardizes the envvar prefix for all kona-node CLI options.

Also adds the `KONA_` prefix for the global metrics args.
theochap pushed a commit that referenced this pull request Dec 10, 2025
## Overview

Missed one in #2114; Adds an envvar for the rollup config.

Co-authored-by: refcell <abigger87@gmail.com>
theochap pushed a commit that referenced this pull request Jan 14, 2026
## Overview

Missed one in #2114; Adds an envvar for the rollup config.

Co-authored-by: refcell <abigger87@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cannon Area: cannon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants