Add "troubleshooting" options to do rescan/reindex from UI
This commit is contained in:
Aditya Kulkarni
2019-03-19 16:02:47 -07:00
parent e8405fc0e8
commit 1671916e73
6 changed files with 118 additions and 5 deletions

View File

@@ -79,6 +79,7 @@ void RPC::setEZcashd(QProcess* p) {
}
}
// Called when a connection to zcashd is available.
void RPC::setConnection(Connection* c) {
if (c == nullptr) return;
@@ -87,6 +88,12 @@ void RPC::setConnection(Connection* c) {
ui->statusBar->showMessage("Ready!");
// See if we need to remove the reindex/rescan flags from the zcash.conf file
auto zcashConfLocation = Settings::getInstance()->getZcashdConfLocation();
Settings::removeFromZcashConf(zcashConfLocation, "rescan");
Settings::removeFromZcashConf(zcashConfLocation, "reindex");
// Refresh the UI
refreshZECPrice();
checkForUpdate();