Holochain Forum

Does 'Sandbox Run' Call Init?

A very silly and impatient question: does the fact that hc sandbox successfully ran and waits for connections mean that init() was successful?

[cc @guillemcordoba ]

No, not quite.
I’ve learned recently that init is triggered at the time of a first zome call being made, not at first boot. There is something called genesis_self_check which gets called at boot and you can fail on it and stop users from joining an app they can’t join.

Oh yeah, the word “genesis” reminded me that:

An incomplete list of all callbacks (though a pretty old list) is at Announcing and Unpacking the New Holochain - Holochain Blog

https://lh6.googleusercontent.com/hIkjSsYsDqyoNPM0aaQCuRmh_ruY5lCiW37zkVYpx8vKOnrXiF-ikq6QHmTSb7sPFyEwJfOO30oy6_8jNMMaT8lYptNbMzzeCLW21FI_6nu3BmhbYX8ohKe-fJwt6AZ5PEmyropZ