Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing EpochValidatorInfo for epoch height 544 #11477

Open
Longarithm opened this issue Jun 4, 2024 · 0 comments
Open

Missing EpochValidatorInfo for epoch height 544 #11477

Longarithm opened this issue Jun 4, 2024 · 0 comments
Labels
C-housekeeping Category: Refactoring, cleanups, code quality

Comments

@Longarithm
Copy link
Member

EpochManager::get_epoch_validator_info gives an error EpochOutOfBounds(EpochId(B3QdexWiRxQ23ft1uJAABFLXdiPLcfSkwanWGmMo81cH)). for epoch height 544. Not sure if it didn't exist before, or was mistakenly wiped. We need to reconstruct it if we want the chain to be fully replayable.

RPC API "validators" endpoint also responds with UNKNOWN_EPOCH to that epoch id.

@Longarithm Longarithm added the C-housekeeping Category: Refactoring, cleanups, code quality label Jun 4, 2024
github-merge-queue bot pushed a commit that referenced this issue Jun 5, 2024
Tool to analyse epoch infos in two modes:
* `check-consistency` - regenerate next next epoch info based on two
previous epochs and check that it matches the epoch info stored in DB;
* `backtest` - regenerate epoch infos with existing proposals, rewards
and kickouts as if `PROTOCOL_VERSION` was always in place.

The `backtest` was used to estimate new algorithm for chunk producer
shard assignments and showed that on average there is only one state
sync happening, if we use start epoch height >= 545. Epoch info for 544
can't be retrieved for some reason, see #11477.

Consistency check revealed that some epochs in the past can't be
replayed, see #11476.
Expected output of it, note that epoch T generates epoch T+2:
```
$ neard view-state epoch-analysis --start-height 1359 check-consistency
HEIGHT | VERSION | STATE SYNCS
  1361 |      53 |           0
  1362 |      53 |           8
  1363 |      54 |           8
  1364 |      54 |           8
  1365 |      54 |          24
  1366 |      54 |          12
...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-housekeeping Category: Refactoring, cleanups, code quality
Projects
None yet
Development

No branches or pull requests

1 participant