mirror of
https://github.com/logos-blockchain/lez-explorer-ui.git
synced 2026-07-30 03:13:25 +00:00
chore: better comment
This commit is contained in:
parent
21ff5e6656
commit
d16a66a64a
@ -588,9 +588,9 @@ QString LezExplorerUiBackend::readConfigFile() const
|
||||
|
||||
bool LezExplorerUiBackend::startIndexerFromFile()
|
||||
{
|
||||
// start_indexer is idempotent and won't restart a running indexer, so stop
|
||||
// any current one first — this is what lets a re-saved config (e.g. a new
|
||||
// bedrock addr) actually take effect. No-op on the first start.
|
||||
// stops the indexer if it's already running, then starts it with the config file path.
|
||||
//
|
||||
// this has the effect of "restarting" the indexer with the new config.
|
||||
modules().lez_indexer_module.stop_indexer();
|
||||
const qlonglong code = modules().lez_indexer_module.start_indexer(configFilePath());
|
||||
if (code != 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user