Open robinbb opened 1 month ago
... with the understanding that the functionality of 'sync' is mostly preserved by way of 'start'.
Adding comments from internal Slack:
start
initializes the Indexer from a directory of blocks/staking ledgers without the presence of a database; maybe a "better" name is new??
More below:
This is how @Isaac-DeFrain thinks about the 3 initialization modes:
start
start
defaults to sync
sync
replay
replay
Suggestion for redesigned CLI semantics:
start
--config
: Use a config file instead of CLI args--self-check
: This "replays" all database events to rebuild the witness and does some data consistency checks in the process; by default, invisible to userscreate-database
create-snapshot
--output-path
The create-database
command should solve #1203
Assigning @Isaac-DeFrain because he has #1203 and solving that one will resolve this one.
'mina-indexer server sync' is the same as 'mina-indexer server start' if you have a database, but fails if you don't have a database. So, it is useless, and confusing. Remove 'sync'.