Option to process only some fraction of blocks at head #213

Open
opened 2022-03-17 14:29:20 +00:00 by i-norden · 1 comment
Member

E.g. every even block, only process diffs when block_number % 2 == 0.

In this manner, we can have multiple geth nodes processing statediffs at head in parallel without duplicating efforts. We can support some configurable degree of overlap/redundancy across multiple geth nodes processing statediffs at head.

E.g. every even block, only process diffs when `block_number % 2 == 0`. In this manner, we can have multiple geth nodes processing statediffs at head in parallel without duplicating efforts. We can support some configurable degree of overlap/redundancy across multiple geth nodes processing statediffs at head.
Author
Member

We would want to define modulo as well as an offset: (block_number + offset) % modulo == 0.

E.g. (block_number + 0) % 2 and (block_number + 1) % 2 would define a processing pattern for two clients that alternate every block, providing full coverage.

We would want to define modulo as well as an offset: `(block_number + offset) % modulo == 0`. E.g. `(block_number + 0) % 2` and `(block_number + 1) % 2` would define a processing pattern for two clients that alternate every block, providing full coverage.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/go-ethereum#213
No description provided.