I am just following the instruction: https://github.com/near/nearcore/blob/master/chain/indexer/README.md
to setup testnet indexer. The command cargo run --release --home-dir ~/.near/testnet init --chain-id testnet --download
that was suggested to run in the instruction doesn't work, it seems that we should replace it -> cargo run --release -- --home-dir ~/.near/testnet init --chain-id testnet --download
Then, as it was described in the instruction I modified config file to adjust shards.
Then run the command: cargo run --release -- --home-dir ~/.near/testnet/ run
and receive:
Finished release [optimized] target(s) in 0.51s
Running `/Users/bohdan_malkevych/Documents/me/git/near-protocol/nearcore/target/release/indexer-example --home-dir /Users/bohdan_malkevych/.near/testnet/ run`
thread 'main' panicked at 'Could not open genesis config file.: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /Users/bohdan_malkevych/Documents/me/git/near-protocol/nearcore/core/chain-configs/src/genesis_config.rs:216:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I have checked /.near/testnet/
folder and can't find any genesis files there.
What I did wrong? Where I can find this genesis file?
OS: Mac OS
Try downloading manually (wget or curl, or whichever tool you prefer) the genesis file:
https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/testnet/genesis.json
and put it into the home folder (~/.near/testnet)