You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reindex command should not change the config and ask user for additional command executions. Instead, command arguments should be used to turn local dashcore container into reindex mode. You don't actually need to edit any dashmate or dashcore configs.
Current Behavior
Reindex command actually changes dashmate config and re-renders all the configs.
Possible Solution
As a more redundant solution, we can use a normal running node to the reindex process and just keep it running when reindex is finished. It will keep Dashmate architecture simpler and we won't need to keep reindex state.
Two commands should be updated:
Reindex command
if the Core service is started we need to inform a user that during reindexing the node won't operate for some time. Core should be stopped.
Write reindex=1 into the Core config
Start the Core service
When Core service is started we update the Core config again and remove reindex flag
If --detach flag is not passed, we show the progress and estimation in reindex command output. The command should exit when reindex is done. We also should warn users that they can exit from the command (CTRL - C) and the process will continue in the background. In both cases, we should tell users that can monitor the process with dashmate status core command.
Dashmate status
Add sync/reindex estimation to dashmate status and dashmate status core
Possibly to detect that reindex is required and show an error with suggestion to run reindex command
Alternatives Considered
Build a statfull soltuion with background reindexing but it will overcomplectate the system and require much more work which doesn't give much benefits
Activity
pshenmic commentedon Jul 22, 2023
#1212
feat(swift-example-app): enable SPV on devnet