Granola-Team / mina-indexer

The Mina Indexer is a re-imagined version of the software collectively called the "Mina archive node."
Apache License 2.0
16 stars 10 forks source link

Problem: `server sync` is redundant, and should be removed to avoid confusion #1033

Open robinbb opened 1 month ago

robinbb commented 1 month ago

'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'.

robinbb commented 1 month ago

... with the understanding that the functionality of 'sync' is mostly preserved by way of 'start'.

jhult commented 2 days ago

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:

jhult commented 2 days ago

Suggestion for redesigned CLI semantics:

jhult commented 2 days ago

The create-database command should solve #1203

robinbb commented 2 days ago

Assigning @Isaac-DeFrain because he has #1203 and solving that one will resolve this one.