waku-org / nwaku

Waku node and protocol.
Other
183 stars 46 forks source link

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

Closed rymnc closed 2 weeks ago

rymnc commented 2 weeks ago

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

github-actions[bot] commented 2 weeks ago

You can find the image built from this PR at

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

Built from 99636f3590c4f7b54ee2b24786fd232a45fef6de

github-actions[bot] commented 2 weeks ago

You can find the image built from this PR at

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

Built from 99636f3590c4f7b54ee2b24786fd232a45fef6de