【发布时间】:2021-01-29 14:33:14
【问题描述】:
我只是按照指示进行操作:https://github.com/near/nearcore/blob/master/chain/indexer/README.md
设置测试网索引器。指令中建议运行的命令cargo run --release --home-dir ~/.near/testnet init --chain-id testnet --download不起作用,看来我们应该替换它-> cargo run --release -- --home-dir ~/.near/testnet init --chain-id testnet --download
然后,如说明中所述,我修改了配置文件以调整分片。
然后运行命令:cargo run --release -- --home-dir ~/.near/testnet/ run 并接收:
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
我检查了/.near/testnet/ 文件夹,但在那里找不到任何创世文件。
我做错了什么?在哪里可以找到这个创世文件?
操作系统:Mac 操作系统
【问题讨论】:
标签: rust indexer nearprotocol