mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
ui: show header pre-synchronization progress
This commit is contained in:
committed by
Suhas Daftuar
parent
738421c50f
commit
3add234546
@@ -37,6 +37,12 @@ enum class BlockSource {
|
||||
NETWORK
|
||||
};
|
||||
|
||||
enum class SyncType {
|
||||
HEADER_PRESYNC,
|
||||
HEADER_SYNC,
|
||||
BLOCK_SYNC
|
||||
};
|
||||
|
||||
enum NumConnections {
|
||||
CONNECTIONS_NONE = 0,
|
||||
CONNECTIONS_IN = (1U << 0),
|
||||
@@ -105,13 +111,13 @@ private:
|
||||
//! A thread to interact with m_node asynchronously
|
||||
QThread* const m_thread;
|
||||
|
||||
void TipChanged(SynchronizationState sync_state, interfaces::BlockTip tip, double verification_progress, bool header) EXCLUSIVE_LOCKS_REQUIRED(!m_cached_tip_mutex);
|
||||
void TipChanged(SynchronizationState sync_state, interfaces::BlockTip tip, double verification_progress, SyncType synctype) EXCLUSIVE_LOCKS_REQUIRED(!m_cached_tip_mutex);
|
||||
void subscribeToCoreSignals();
|
||||
void unsubscribeFromCoreSignals();
|
||||
|
||||
Q_SIGNALS:
|
||||
void numConnectionsChanged(int count);
|
||||
void numBlocksChanged(int count, const QDateTime& blockDate, double nVerificationProgress, bool header, SynchronizationState sync_state);
|
||||
void numBlocksChanged(int count, const QDateTime& blockDate, double nVerificationProgress, SyncType header, SynchronizationState sync_state);
|
||||
void mempoolSizeChanged(long count, size_t mempoolSizeInBytes);
|
||||
void networkActiveChanged(bool networkActive);
|
||||
void alertsChanged(const QString &warnings);
|
||||
|
||||
Reference in New Issue
Block a user