mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
[Qt] reduce cs_main in getVerificationProgress()
This commit is contained in:
@@ -15,6 +15,7 @@ class PeerTableModel;
|
||||
class TransactionTableModel;
|
||||
|
||||
class CWallet;
|
||||
class CBlockIndex;
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QTimer;
|
||||
@@ -59,7 +60,7 @@ public:
|
||||
quint64 getTotalBytesRecv() const;
|
||||
quint64 getTotalBytesSent() const;
|
||||
|
||||
double getVerificationProgress() const;
|
||||
double getVerificationProgress(const CBlockIndex *tip) const;
|
||||
QDateTime getLastBlockDate() const;
|
||||
|
||||
//! Return true if core is doing initial block download
|
||||
@@ -88,7 +89,7 @@ private:
|
||||
|
||||
Q_SIGNALS:
|
||||
void numConnectionsChanged(int count);
|
||||
void numBlocksChanged(int count, const QDateTime& blockDate);
|
||||
void numBlocksChanged(int count, const QDateTime& blockDate, const CBlockIndex *tip);
|
||||
void mempoolSizeChanged(long count, size_t mempoolSizeInBytes);
|
||||
void alertsChanged(const QString &warnings);
|
||||
void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut);
|
||||
|
||||
Reference in New Issue
Block a user