-
fix(chain): lazy-init builtin registries — global static crashed leap-util (#10)
released this
2026-06-10 19:41:08 +00:00 | 0 commits to main since this releaseThe genesis registry was a namespace-scope static whose initializer parses
public_key_type values; fc's own static state is not guaranteed to exist at
that point, and every leap-util invocation (even 'version client') aborted
with fc::assert_exception before main() — classic static init order fiasco.
nodeos was unaffected only because the linker never pulls the unused object
file out of the static library.Both builtin registries (genesis, historical exceptions) now use function-
local statics built on first use.Co-authored-by: coopops coopos@coopenomics.world
Co-authored-by: Claude Opus 4.7 noreply@anthropic.comDownloads