attestantio / vouch

Apache License 2.0
112 stars 28 forks source link

Prepare sync committee jobs near change of period. #45

Closed mcdee closed 2 years ago

mcdee commented 2 years ago

Sync committee jobs were being created for period x at the beginning of period x-1. Some beacon nodes were failing to update their internal information regarding the current sync committee period in time, resulting in them rejecting a request for sync committee duties.

This addresses the issue by only requesting data a few epochs before the new sync committee period comes in to effect. This ensures that the node will be able to serve the requested data.