aboutsummaryrefslogtreecommitdiff
path: root/src/headerssync.h
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2022-08-12 10:05:22 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2022-08-29 08:10:35 -0400
commit03712dddfbb9fe0dc7a2ead53c65106189f5c803 (patch)
tree26fa9f85ab867705e094f9b4a7826e7553021dfe /src/headerssync.h
parent150a5486db50ff77c91765392149000029c8a309 (diff)
downloadbitcoin-03712dddfbb9fe0dc7a2ead53c65106189f5c803.tar.xz
Expose HeadersSyncState::m_current_height in getpeerinfo()
Diffstat (limited to 'src/headerssync.h')
-rw-r--r--src/headerssync.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/headerssync.h b/src/headerssync.h
index b694407792..01d55eb44e 100644
--- a/src/headerssync.h
+++ b/src/headerssync.h
@@ -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).
*