near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
124 stars 56 forks source link

Localnet `init`d config isn't runnable due to no tracked shards #166

Closed mieubrisse closed 2 years ago

mieubrisse commented 2 years ago

Config generated with:

/usr/local/bin/indexer-explorer --home-dir /root/.near/localnet init --fast --chain-id localnet

Requires changing the "tracked_shards": [], line in the generated config.json to "tracked_shards": [0],

telezhnaya commented 2 years ago

Hi @mieubrisse You are right, it is mentioned in the doc: https://github.com/near/near-indexer-for-explorer#self-hosting

We will support multiple shards at the nearest time, the value could be not only [0], so it's better to leave it as it is. The user should fill it with the desired value.