mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
The id is declared twice — here beside the Factory and in luxfi/constants, which is the one genesis writes into the CreateChainTx — and nothing made them agree. If this repo's literal moved, a node would look for a plugin under one name while genesis named the other, and the chain would never appear: a plugin that is absent and a plugin nobody asked for look identical to a directory scan. The second test records the property that decides how a plugin gets pinned. The id is an ASCII name padded to 32 bytes, not a digest of the binary, and it must not become one: genesis references it from a transaction already signed and already in the chain, so an id derived from the build would change on every rebuild and stop resolving the chain it created. Identity is stable across versions by construction. Which leaves integrity as a separate value. Nothing states which build of dexd is the right one, and the registry runs whatever sits at the filename. What CB58 does buy is that a mistyped filename fails its checksum instead of resolving to nothing.