do turnstile step only if blockchain is not syncing

This commit is contained in:
Aditya Kulkarni
2018-11-20 15:09:42 -08:00
parent a8cbb3f6e6
commit 0f4ad90eac

View File

@@ -247,6 +247,10 @@ ProgressReport Turnstile::getPlanProgress() {
}
void Turnstile::executeMigrationStep() {
// Do a step only if not syncing, else wait for the blockchain to catch up
if (Settings::getInstance()->isSyncing())
return;
auto plan = readMigrationPlan();
//qDebug() << QString("Executing step");
@@ -254,7 +258,7 @@ void Turnstile::executeMigrationStep() {
// Get to the next unexecuted step
auto fnIsEligibleItem = [&] (auto item) {
return item.status == TurnstileMigrationItemStatus::NotStarted ||
return item.status == TurnstileMigrationItemStatus::NotStarted ||
item.status == TurnstileMigrationItemStatus::SentToT;
};