near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.3k stars 601 forks source link

Cannot replay epoch info generation for epoch height 1055 #11476

Open Longarithm opened 1 month ago

Longarithm commented 1 month ago

Epoch height 1055 is around the last height with protocol version 48 used. Apparently what matters is that we started to use ProtocolFeature::AliasValidatorSelectionAlgorithm after that. Looks like we can't replay the old behaviour, attempt to do so results in the first validator index diverging.

It is not visible and has moderate urgency, because everyone seems to use already generated epoch infos, but if one tries to regenerate epoch infos from genesis, their chain is likely to diverge.

Consider

wacban commented 1 month ago

Is this something that needs to be solved for epoch sync?

Longarithm commented 1 month ago

Yeah, looks like the doc includes recomputation of epoch infos. cc @posvyatokum