package
0.0.0-20211129113134-4f0ab6e52c63
Repository: https://github.com/multivactech/multivac.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
shardprocessor
resharding
Detemine the next shard at H and work in the new shard at H+k
Between the K rounds, it need to create the new shard network connection and init the ledger of new shard
- At height H: determine the next shard
- before resharding in this shard, after reshading in this shard:
- Do nothing
- before resharding in this shard, after reshading not in this shard:
- Set consensus stopped at height h+k, Since the consensus begins directly after the next round, it is necessary to set the consensus in the resharding round and stop the next round if it needs to stop.
- before resharding not in this shard, after reshading in this shard:
- Set processor enabled
- Init ledger
- Init ledger complete, set the miner processor status: preparation
- Cache the block proposed by others miners
- After receive the confirmation of the cache block, verify and accept the block
- Broadcast the new enabledshards
- before resharding not in this shard, after reshading not in this shard:
- Do nothing
- before resharding in this shard, after reshading in this shard:
- At height H+K: work in the new shard
- before resharding in this shard, after reshading in this shard:
- Update the proof
- before resharding in this shard, after reshading not in this shard:
- Consensus stopped at height h+k by itself
- Broadcast the new enabledshards
- before resharding not in this shard, after reshading in this shard:
- Start the next round after receive the confirmation msg
- before resharding not in this shard, after reshading not in this shard:
- Do nothing
- before resharding in this shard, after reshading in this shard: