-
Notifications
You must be signed in to change notification settings - Fork 623
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
RFC Storage/Primitives refactoring #575
Comments
Regarding the ids for the shardsConceptually it would be nice to have shards identified by their genesis, however not having a numerical id for the shards is much harder and not supported by some of our current algorithms. One of such places is authority, when we distribute the seats for the validators across the shards these shards are enumerated. Other place is column storage, the current solution (kvdb) identifies columns by numerical id only. I think it is a good idea to make each shard and beacon use separate set of columns because it allows parallelism and bug-protection (we already had a bug because we wrote beacon chain and shard chain into the same columns), so shards are going to be identified numerically anyway. In general, I think it is way too early to address the resharding, and I was under impression that we all agreed that resharding is one of the last things that we will be solving post mainnet. @SkidanovAlex |
Regarding having storage not know about anything like shards, chains, etcI believe we need to have a data-layer separate from the domain layer that does the ORM. It prevents other components in our infra from being exposed to the implementation details of the storage. The reasons why we want this separation:
|
For storage:
|
Where do shard IDs get persisted today on the blockchain? Dynamic resharding (without at least shutting down the client and restarting with a different config) is a nice-to-have, but by no means necessary? |
|
@SkidanovAlex There is no need to shut down anything, as this is just will happen pretty natural if we ID shards by genesis block. E.g. reshard happened:
|
Closing at this point, we just going with the current architecture. |
I have bunch of comments:
node
folder.The text was updated successfully, but these errors were encountered: