Closed robinbb closed 1 month ago
... this causes --blocks-dir
and --staking-ledgers-dir
command line options to have to be given to server commands where it does not make sense. Makes for confusing ops code.
Out of curiosity, why do want to start an indexer without a watched blocks/staking ledgers directory? You just want a static database to query?
@Isaac-DeFrain Yes. It is a simpler mode of operation that will help debug other issues. It is has also been the only "production" mode of operation for the last many months.
If
--blocks-dir
is not given on the command line toserver start
, a user would expect that no blocks will be watched for. However, instead, the blocks are sought in a default directory. Worse, that location is often not accessible to the user, and so the mina-indexer crashes with a cryptic error message.The behaviour should be that if
--blocks-dir
is not given, then no directory is watched for blocks.The same is true for
--staking-ledger-dir
.