Support fast sync during initial block download
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user