File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,14 @@ int ClientModel::getNumBlocks() const
68
68
return chainActive.Height ();
69
69
}
70
70
71
+ int ClientModel::getHeaderHeight () const
72
+ {
73
+ LOCK (cs_main);
74
+ if (!pindexBestHeader)
75
+ return 0 ;
76
+ return pindexBestHeader->nHeight ;
77
+ }
78
+
71
79
quint64 ClientModel::getTotalBytesRecv () const
72
80
{
73
81
return CNode::GetTotalBytesRecv ();
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ class ClientModel : public QObject
51
51
// ! Return number of connections, default is in- and outbound (total)
52
52
int getNumConnections (unsigned int flags = CONNECTIONS_ALL) const ;
53
53
int getNumBlocks () const ;
54
+ int getHeaderHeight () const ;
54
55
55
56
// ! Return number of transactions in the mempool
56
57
long getMempoolSize () const ;
You can’t perform that action at this time.
0 commit comments