Support fast sync during initial block download

This commit is contained in:
Aditya Kulkarni
2019-06-03 13:28:43 -07:00
parent 9fada760d2
commit 74bb8a4e95
4 changed files with 100 additions and 43 deletions

View File

@@ -635,6 +635,14 @@ void RPC::getInfoThenRefresh(bool force) {
ui->blockheight->setText(txt);
ui->heightLabel->setText(QObject::tr("Downloading blocks"));
} else {
// If syncing is finished, we may have to remove the ibdskiptxverification
// flag from zcash.conf
if (getConnection() != nullptr && getConnection()->config->skiptxverification) {
getConnection()->config->skiptxverification = false;
Settings::removeFromZcashConf(Settings::getInstance()->getZcashdConfLocation(),
"ibdskiptxverification");
}
ui->blockheight->setText(QString::number(blockNumber));
ui->heightLabel->setText(QObject::tr("Block height"));
}