Move standard library initialization to genesis transactions #2730
Labels
help wanted
Want to contribute? We recommend these issues.
📦 ⛰️ gno.land
Issues or PRs gno.land package related
🌟 improvement
performance improvements, refactors ...
Milestone
Standard libraries can and should be treated as regular packages; which, at least for the time being, can only be loaded at genesis.
Related discussion: #2319 (comment)
After discussing with Milos, we agreed that it makes sense for the gno.land node at startup to be ignorant about standard libraries; this way, we can further separate the gno.land application binary from needing a surrounding gno repository to work.
To make this work, we'll likely additionally need adequate mechanisms to make stdlib loading fast in testing code and in gnodev, which often restart nodes from genesis. Currently, this is implemented by the method LoadStdlibCached, which is very effective at cutting down start-up costs in these scenarios currently, but would have to be removed if we moved to having stdlibs in the genesis file.
Related #1248
The text was updated successfully, but these errors were encountered: