dreamcatcher-tech / dreamcatcher-stack

https://dreamcatcher.land
1 stars 0 forks source link

set initial state with @@INIT or similar #105

Open inverted-capital opened 2 years ago

inverted-capital commented 2 years ago

We cannot add it in genesis, unless state retreival can be made inert. State might be inert if the covenant model is done fully.

While the covenant is loaded, in @@INIT, we should pass in the initial state if the covenant specified it. More fully, we should pass in the state on the first non-genesis block, to avoid base chain of the engine having to block once just to get its state.