Skip to content

Commit

Permalink
Merge pull request #13765 from MinaProtocol/fix/replayer-not-orphaned…
Browse files Browse the repository at this point in the history
…-slot

Replayer, next slot not orphaned
  • Loading branch information
deepthiskumar committed Jul 28, 2023
2 parents 9ef14a4 + 9c3d4eb commit 53631a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helm/cron_jobs/devnet-replayer-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
env:
- name: GCLOUD_KEYFILE
value: /gcloud/keyfile.json
image: gcr.io/o1labs-192920/mina-rosetta:1.4.0beta2-fix-replayer-start-ledger-hash-2627643-bullseye
image: gcr.io/o1labs-192920/mina-rosetta:1.4.0beta2-fix-replayer-not-orphaned-slot-5827016-bullseye
imagePullPolicy: IfNotPresent
name: devnet-replayer-cronjob
resources:
Expand Down
2 changes: 1 addition & 1 deletion helm/cron_jobs/mainnet-replayer-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
env:
- name: GCLOUD_KEYFILE
value: /gcloud/keyfile.json
image: gcr.io/o1labs-192920/mina-rosetta:1.4.0beta2-fix-replayer-start-ledger-hash-2627643-bullseye
image: gcr.io/o1labs-192920/mina-rosetta:1.4.0beta2-fix-replayer-not-orphaned-slot-5827016-bullseye
imagePullPolicy: IfNotPresent
name: mainnet-replayer-cronjob
resources:
Expand Down
1 change: 1 addition & 0 deletions src/app/replayer/sql.ml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ module Block = struct
Caqti_request.find_opt Caqti_type.int64 Caqti_type.int64
{sql| SELECT global_slot_since_genesis FROM blocks
WHERE global_slot_since_genesis >= $1
AND chain_status <> 'orphaned'
ORDER BY global_slot_since_genesis ASC
LIMIT 1
|sql}
Expand Down

0 comments on commit 53631a0

Please sign in to comment.