near / nearcore

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

Ensure that state snapshot works for new shards #11600

Open Longarithm opened 3 months ago

Longarithm commented 3 months ago

I suspect we want to support state snapshots for shards which were freshly created. However, in this line https://github.com/near/nearcore/blob/61c67c6e4825ce839f074fbc6d548f704c78415c/core/store/src/trie/state_snapshot.rs#L100 we assume that shard uids correspond to the previous epoch only. We may want to support new shard layout as well.

cc @wacban