mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
dexd run could not start. The VM refuses to found a chain from a creation document it was not given — correctly, since a genesis the binary derived is one no other node would derive — and standalone called Initialize with no document at all, so every invocation ended at that refusal. The mode the binary's own help describes was unreachable. It takes --genesis now: under luxd the document arrives as InitializeRequest.GenesisBytes, and standalone has no P-Chain to read it from, so an operator names it. The bytes are opaque; what matters is that somebody chose them, so two nodes told to be the same chain are. The surface also mounted a segment twice. httpHandlers returns keys that already carry the chain's namespace — "/dex/<method>", the same segment a node serves under /v1/bc/<D>/ — so a prefix of "/v1/dex" produced /v1/dex/dex/<method>: a path no client written against a node would try, and not the one the flag promises. The prefix supplies the version now. Verified by running it: the venue starts against a document and answers dex_get_markets and dex_get_trades at /v1/dex/<method>. Co-authored-by: Hanzo Dev <[email protected]>