adding readme

pull/224/head
alok 6 years ago
parent 8191c81741
commit 5e3c50431c
  1. 3
      internal/beaconchain/README.md
  2. 1
      internal/newnode/README.md

@ -0,0 +1,3 @@
The beaconchain package currently is a centralized service that allocates every potential new node (uses newnode package) a specific shard.
If N is the number of shards, supplied as a parameter at bootup, then first N joining nodes are assigned to be the leaders of those N shards. The nodes that come after that are then assigned shards based on their order of entry.
In the future, the generation of randomness would be decentralized. Such randomness would be provided to a new node once its PoS has been verified and then the node would be able to calculate its own shard automatically.

@ -0,0 +1 @@
Newnode package is for handling the interactions of a new candidate node that wants to join the network. Such interaction at the moment is about contacting the beaconchain and getting assigned a shard and findingout the shardleader. In future this package will be merged into the node package.
Loading…
Cancel
Save