diff options
Diffstat (limited to 'src/headerssync.h')
-rw-r--r-- | src/headerssync.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/headerssync.h b/src/headerssync.h index 01d55eb44e..16da964246 100644 --- a/src/headerssync.h +++ b/src/headerssync.h @@ -121,6 +121,12 @@ public: /** Return the height reached during the PRESYNC phase */ int64_t GetPresyncHeight() const { return m_current_height; } + /** Return the block timestamp of the last header received during the PRESYNC phase. */ + uint32_t GetPresyncTime() const { return m_last_header_received.nTime; } + + /** Return the amount of work in the chain received during the PRESYNC phase. */ + arith_uint256 GetPresyncWork() const { return m_current_chain_work; } + /** Construct a HeadersSyncState object representing a headers sync via this * download-twice mechanism). * |