Deprecate ShardLayout::v0 #12176
Labels
A-resharding
Area: State resharding
C-good-first-issue
Category: issues that are self-contained and easy for newcomers to work on.
C-housekeeping
Category: Refactoring, cleanups, code quality
Description
ShardLayout::v0
is responsible for random assignment of accounts to shards. It is incompatible with current and future shard layouts because it makes it impossible to derive range of accounts from boundary accounts.The first mainnet config was v0. However, there was only one shard, so random assignment wasn't used.
It could be nice to remove all occurrences of v0 from code, including all kinds of tests up to pytests.
But we need to be very careful to preserve compatibility with genesis.
There was assumption in some test that localnet accounts are located on different shards; but this can be handled with v1/v2 as well.
The text was updated successfully, but these errors were encountered: