Expose HeadersSyncState::m_current_height in getpeerinfo()

This commit is contained in:
Suhas Daftuar
2022-08-12 10:05:22 -04:00
parent 150a5486db
commit 03712dddfb
5 changed files with 63 additions and 0 deletions

View File

@@ -118,6 +118,9 @@ public:
/** Return the current state of our download */
State GetState() const { return m_download_state; }
/** Return the height reached during the PRESYNC phase */
int64_t GetPresyncHeight() const { return m_current_height; }
/** Construct a HeadersSyncState object representing a headers sync via this
* download-twice mechanism).
*