Replies: 2 comments
-
For reference, I've taken a look at other projects' cases. Ethereum
Cosmos SDK
Substrate
NEAR Protocol
|
Beta Was this translation helpful? Give feedback.
0 replies
-
(Just for note)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The key role of the genesis block is to found initial states of the chain, and we tend to say about only what states should fill it with rather than what kind of actions should be executed at first. Also, in Libplanet, the genesis block functions as a network identifier as well.
In order to keep it simple and be free from generating a genesis block (which is very complicated to execute), today @longfin suggested to make initial states as a part of consensus instead of chain requiring a genesis block. To explain it in code, we could add new properties to shape initial states:
As
BlockChain<T>
becomes to no more take anyBlock<T>
via its constructors, its initial states are filled with ones from itsIBlockPolicy<T>
.Instead, we should find an alternative to genesis hash as a network identifier. We might add a new field to
BlockChain<T>
, or the initial state root hash may fulfill its function.Beta Was this translation helpful? Give feedback.
All reactions