Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ONC-83] Add stage-only migration to fix indexing the sepolia chain #8257

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

sddioulde
Copy link
Contributor

@sddioulde sddioulde commented Apr 29, 2024

Description

For stage only, update the last scanned eth block to the block at which we migrated to Sepolia.

Previously were attempting to scan recent Goerli block numbers, which were beyond the Sepolia max block number.

How Has This Been Tested?

Tested on stage DN5 and it worked. See logs showing the scanning of the blocks.

{"level": "INFO", "msg": "index_eth.py | Scanning events from blocks 5791842 - 5791859", "timestamp": "2024-04-27 23:50:28,626", "service": "worker", "otelSpanID": "0", "otelTraceID": "0", "otelServiceName": "discovery-provider", "cpu": 0.0, "memory": 407.375}
{"level": "INFO", "msg": "event_scanner.py | Saving last scanned block (5791859) to redis", "timestamp": "2024-04-27 23:50:28,692", "service": "worker", "otelSpanID": "0", "otelTraceID": "0", "otelServiceName": "discovery-provider", "cpu": 17.0, "memory": 407.7109375}
 last_scanned_block |         created_at         |         updated_at
--------------------+----------------------------+----------------------------
            5791866 | 2021-09-25 09:49:14.065805 | 2022-07-24 16:57:05.862958
(1 row)
 last_scanned_block |         created_at         |         updated_at
--------------------+----------------------------+----------------------------
            5791983 | 2021-09-25 09:49:14.065805 | 2022-07-24 16:57:05.862958
(1 row)

Copy link

changeset-bot bot commented Apr 29, 2024

⚠️ No Changeset found

Latest commit: 2e4fcb7

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

@sddioulde sddioulde requested a review from alecsavvy April 29, 2024 14:33
Copy link
Contributor

@alecsavvy alecsavvy left a comment

Choose a reason for hiding this comment

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

sweet ty

@sddioulde sddioulde merged commit 321ebf6 into main Apr 29, 2024
11 checks passed
@sddioulde sddioulde deleted the sd-sepolia-index-eth branch April 29, 2024 17:07
audius-infra pushed a commit that referenced this pull request Apr 30, 2024
[bd2fbc3] [⚠️] Clean up discovery node build artifacts and URSM code (#8234) Raymond Jacobson
[df0349a] [PAY-2761] Add managed users endpoints (#8238) Randy Schott
[ca8133d] [PROTO-1789] Fix up minor entrypoint issues and deploy (#8252) Raymond Jacobson
[7e4ec20] Add cloudflare ip check fix (#8253) Raymond Jacobson
[321ebf6] [ONC-83] Add stage-only migration to fix indexing the sepolia chain (#8257) Saliou Diallo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants