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

fix(rln-relay): persist metadata every batch during initial sync #2649

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Apr 29, 2024

Description

This PR offloads the setMetadata proc from the atomicBatch proc to the callsites of the getAndHandleEvents so that it is not called twice, and during the initial sync when we parallelize the rpc calls we want to ensure the metadata is set in increasing block number counts to avoid race conditions and missed blocks.

Changes

  • set metadata appropriately when parallelizing rpc calls

Copy link

github-actions bot commented Apr 29, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2649-rln-v1

Built from 99636f3

Copy link

github-actions bot commented Apr 29, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2649-rln-v2

Built from 99636f3

@rymnc rymnc marked this pull request as ready for review April 30, 2024 06:30
Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for it! 💯

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

rymnc and others added 2 commits April 30, 2024 16:22
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
@rymnc rymnc merged commit a9e19ef into master Apr 30, 2024
14 of 15 checks passed
@rymnc rymnc deleted the taint-sync-while-starting branch April 30, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants