Skip to content

Commit 1afc0e4

Browse files
committed
doc: remove potentially confusing ChainstateManager comment
1 parent 769a1ef commit 1afc0e4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/validation.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,7 @@ class ChainstateManager
833833
//! using this pointer (e.g. net_processing).
834834
//!
835835
//! Once this pointer is set to a corresponding chainstate, it will not
836-
//! be reset until init.cpp:Shutdown(). This means it is safe to acquire
837-
//! the contents of this pointer with ::cs_main held, release the lock,
838-
//! and then use the reference without concern of it being deconstructed.
836+
//! be reset until init.cpp:Shutdown().
839837
//!
840838
//! This is especially important when, e.g., calling ActivateBestChain()
841839
//! on all chainstates because we are not able to hold ::cs_main going into
@@ -846,9 +844,7 @@ class ChainstateManager
846844
//! non-null, it is always our active chainstate.
847845
//!
848846
//! Once this pointer is set to a corresponding chainstate, it will not
849-
//! be reset until init.cpp:Shutdown(). This means it is safe to acquire
850-
//! the contents of this pointer with ::cs_main held, release the lock,
851-
//! and then use the reference without concern of it being deconstructed.
847+
//! be reset until init.cpp:Shutdown().
852848
//!
853849
//! This is especially important when, e.g., calling ActivateBestChain()
854850
//! on all chainstates because we are not able to hold ::cs_main going into
@@ -859,9 +855,7 @@ class ChainstateManager
859855
//! most-work chain.
860856
//!
861857
//! Once this pointer is set to a corresponding chainstate, it will not
862-
//! be reset until init.cpp:Shutdown(). This means it is safe to acquire
863-
//! the contents of this pointer with ::cs_main held, release the lock,
864-
//! and then use the reference without concern of it being deconstructed.
858+
//! be reset until init.cpp:Shutdown().
865859
//!
866860
//! This is especially important when, e.g., calling ActivateBestChain()
867861
//! on all chainstates because we are not able to hold ::cs_main going into

0 commit comments

Comments
 (0)