autonomys / subspace

Subspace Network reference implementation
https://subspace.network
380 stars 243 forks source link

Update MMR sync. #3104

Closed shamil-gadelshin closed 3 weeks ago

shamil-gadelshin commented 3 weeks ago

This PR updates MMR-sync. It removes the existing limitation of using FINALIZATION_DEPTH_IN_SEGMENTS lag by calculating the proper temporary key by the block number and saving the MMR-node with a canon key in advance. This change allows us to snap sync to the confirmed domain block instead of to the block within FINALIZATION_DEPTH_IN_SEGMENTS blocks lag and sync several segments after that.

Code contributor checklist:

shamil-gadelshin commented 3 weeks ago

Superseded by https://github.com/autonomys/subspace/pull/3115