Skip to main content

Module injectivity

Module injectivity 

Source
Expand description

Short id injectivity: the one-time scan and repair.

Releases before v1.8.3 could mint two short ids for one identity, leaving stale reverse rows in both families, ghost entries in a few compressed states, and auth chains cached from both allocations. The migration measures that residue, repairs what matches the shapes it handles, and marks itself complete like any other. Every release through v1.8.3 also memoized auth chains truncated at a missing ancestor, which no scan tells from a whole one, so the cache is discarded once on a marker of its own.

Modulesยง

repair ๐Ÿ”’
scan ๐Ÿ”’

Constantsยง

PASSES ๐Ÿ”’
Scan passes one boot allows before giving up on convergence.

Staticsยง

CLEAR_MARKER ๐Ÿ”’
Global marker recording the one-time auth chain cache clear.
MARKER ๐Ÿ”’
Global marker recording the repair ran to completion.

Functionsยง

clear_chain_cache ๐Ÿ”’
Discards auth chains cached before walk completeness was enforced.
clear_chains ๐Ÿ”’
Deletes every auth chain cache row under one cork.
fix ๐Ÿ”’
Runs the one-time chain cache clear, then the injectivity scan, heal, and repair behind MARKER.
mark_clean ๐Ÿ”’
Stamps both markers on a fresh database.