Refactor the eth2 light client to resolve an issue of missing finality for more than 5 epochs.
Added two modes SubmitLightClientUpdate and SubmitHeader.
By default, the client is in SubmitLightClientUpdate and it turns into SubmitHeader after submitting a light client update.
Added integration tests for migration logic.
The relayer can submit a LightClientUpdate after any number of epochs/blocks, but those can be finalized only if the size of the gap between the current finalized block and the subsequent finalized block is higher than hashes_gc_threshold, otherwise, the GC can't be applied correctly.
Update Eth2-to-Near relay and eth2near crates to v0.3.0.
Refactor the eth2 light client to resolve an issue of missing finality for more than 5 epochs.
SubmitLightClientUpdate
andSubmitHeader
.SubmitLightClientUpdate
and it turns intoSubmitHeader
after submitting a light client update.LightClientUpdate
after any number of epochs/blocks, but those can be finalized only if the size of the gap between the current finalized block and the subsequent finalized block is higher thanhashes_gc_threshold
, otherwise, theGC
can't be applied correctly.eth2near
crates to v0.3.0.