Closed robinbb closed 3 months ago
Isaac's PR (#1056) may have included the ledger, but the "--genesis-ledger" command line switch still exists and is required, so is not what I had in mind with this issue. I will re-open, and better specify what is desired.
Command line switch is no longer required. Closing.
The idea is to render unnecessary the "--genesis-ledger" command line switch by including the file verbatim in the mina-indexer binary. This means that we won't need to parse a file, but a static string.
This is important because it is very error-prone to ensure that the file is installed into the right place on the user's machine.
This makes the Nix-built image more difficult to get right, and indeed it is not working at present because of this.
Old requirement: Just use https://doc.rust-lang.org/std/macro.include_str.html to pull it into the binary at compile time. This avoids the awkward need to deploy that file somewhere on the user's machine.