| 966 | } |
| 967 | |
| 968 | void BitcoinGUI::updateHeadersSyncProgressLabel() |
| 969 | { |
| 970 | int64_t headersTipTime = clientModel->getHeaderTipTime(); |
| 971 | int headersTipHeight = clientModel->getHeaderTipHeight(); |
| 972 | int estHeadersLeft = (GetTime() - headersTipTime) / Params().GetConsensus().nPowTargetSpacing; |
| 973 | if (estHeadersLeft > HEADER_HEIGHT_DELTA_SYNC) |
| 974 | progressBarLabel->setText(tr("Syncing Headers (%1%)…").arg(QString::number(100.0 / (headersTipHeight+estHeadersLeft)*headersTipHeight, 'f', 1))); |
| 975 | } |
| 976 | |
| 977 | void BitcoinGUI::openOptionsDialogWithTab(OptionsDialog::Tab tab) |
| 978 | { |
nothing calls this directly
no test coverage detected