Skip to content

Commit

Permalink
Update Periodically-Syncing-HyperChains.md
Browse files Browse the repository at this point in the history
Remark on voting for epoch length over epoch boundaries
  • Loading branch information
ThomasArts authored Sep 9, 2024
1 parent e132bed commit cdccc13
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Periodically-Syncing-HyperChains.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,19 @@ Implementation: If the proposal is approved through voting, the adjustments are

This structured approach to managing chain speed deviations ensures that any necessary adjustments are made automatically based on consensus and a clear understanding of the network. It reinforces the adaptability and resilience of the HyperChain system, allowing it to respond effectively to changing operational dynamics.

## Consensus and Contracts

We implement part of the child chain by means of one or more smart contracts that will be deployed in the genesis block.
For example, there will be a staking contract that keeps track of the stakers at each height. Updates to these contracts is
performed by contract calls, which makes the state of the contracts visible on-chain.

The main contract must be aware of the four staking cycles and keeps track of those four cycles independently.
At the end of a child epoch, the state is updated and the epochs shift taking the correct parameters into account.

The epoch length can be adjusted within a cycle by having the last leader of the production epoch propose decrease or increase of the length.
During the next epoch, votes can be collected and the result is again posted in the last block of that epoch.
If there is a majority vote for the same speed change, then the epoch thereafter will have that demanded new epoch length.


## Pinning
We introduce a strategic mechanism to establish and maintain the synchronization between the Child Chain (CC) and the Parent Chain (PC), known as the 'pinning action.' This method serves as a crucial link, ensuring the CC is securely anchored to the state of the PC, thereby leveraging its security attributes.
Expand Down

0 comments on commit cdccc13

Please sign in to comment.