near / nearcore

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

Cannot replay epoch info generation for epoch height 1055 #11476

Open Longarithm opened 5 months ago

Longarithm commented 5 months 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 5 months ago

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

Longarithm commented 5 months ago

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