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

Recover non processed blocks after websocket connection loss #762

Merged
merged 57 commits into from
Aug 15, 2023

Conversation

Cardosaum
Copy link
Contributor

@Cardosaum Cardosaum commented Aug 4, 2023

Overview

Currently, in case of websocket connection loss, we lose all events emitted until we get a reconnection. This PR seeks to implement recovery logic to the running Relay.

Caveats

It's important to not that the current Relay implementation does not provide permanent state, so if for any reason the Relay itself goes down we currently don't provide a way to recover prior emitted events, the only events that are currently possible to recover are the ones a current running Relay identifies it didn't process due to websocket connection loss.

Related issues

Closes #743

capossele and others added 30 commits July 14, 2023 05:56
@Cardosaum Cardosaum self-assigned this Aug 4, 2023
@Cardosaum Cardosaum added the enhancement New feature or request label Aug 14, 2023
@Cardosaum Cardosaum marked this pull request as ready for review August 14, 2023 10:56
@Cardosaum Cardosaum requested a review from jjtny1 August 14, 2023 10:57
@Cardosaum Cardosaum enabled auto-merge (squash) August 15, 2023 07:06
@Cardosaum Cardosaum merged commit 7e58b97 into main Aug 15, 2023
15 checks passed
@Cardosaum Cardosaum deleted the cardosaum/relay-recover-lost-blocks branch August 15, 2023 08:25
@flaub
Copy link
Member

flaub commented Aug 15, 2023

FYI for future reference, when we squash & merge, it'd be good to try and cleanup the final commit message so that in the future, if someone is doing a bisect or looking thru the history, they don't see all of the intermediate commit messages. GitHub provides a way to edit the final commit message just during the squash & merge process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store last processed block on Ethereum Relay
3 participants