diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-07-17 08:58:47 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-07-17 09:12:28 +0200 |
commit | fa927055dd43dda945396574273a210186beec9f (patch) | |
tree | 714b05cb6f52df56136e1cfc4d251130fb3a3f32 /src/validation.h | |
parent | 6f9db1ebcab4064065ccd787161bf2b87e03cc1f (diff) | |
download | bitcoin-fa927055dd43dda945396574273a210186beec9f.tar.xz |
refactor: Make m_last_notified_header private
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/validation.h b/src/validation.h index ea4ec84242..08e672c620 100644 --- a/src/validation.h +++ b/src/validation.h @@ -906,6 +906,11 @@ private: CBlockIndex* m_best_invalid GUARDED_BY(::cs_main){nullptr}; + /** The last header for which a headerTip notification was issued. */ + CBlockIndex* m_last_notified_header GUARDED_BY(GetMutex()){nullptr}; + + bool NotifyHeaderTip() LOCKS_EXCLUDED(GetMutex()); + //! Internal helper for ActivateSnapshot(). //! //! De-serialization of a snapshot that is created with @@ -1063,9 +1068,6 @@ public: /** Best header we've seen so far (used for getheaders queries' starting points). */ CBlockIndex* m_best_header GUARDED_BY(::cs_main){nullptr}; - /** The last header for which a headerTip notification was issued. */ - CBlockIndex* m_last_notified_header GUARDED_BY(::cs_main){nullptr}; - //! The total number of bytes available for us to use across all in-memory //! coins caches. This will be split somehow across chainstates. int64_t m_total_coinstip_cache{0}; |