Skip to content

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

Merged
sddioulde merged 1 commit into
mainfrom
sd-sepolia-index-eth
Apr 29, 2024
Merged

[ONC-83] Add stage-only migration to fix indexing the sepolia chain#8257
sddioulde merged 1 commit into
mainfrom
sd-sepolia-index-eth

Conversation

@sddioulde

@sddiouldesddioulde commented Apr 29, 2024

Copy link
Copy Markdown
Contributor

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)

@changeset-bot

Copy link
Copy Markdown

⚠️ 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

@alecsavvyalecsavvy left a comment

Copy link
Copy Markdown
Contributor

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 mainApr 29, 2024
@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 freeto 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

@sddioulde@alecsavvy