Skip to content

Commit f6b782f

Browse files
committed
doc: Improve m_best_header documentation
1 parent ee673b9 commit f6b782f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/validation.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,10 @@ class ChainstateManager
10381038
}
10391039

10401040

1041-
/** Best header we've seen so far (used for getheaders queries' starting points). */
1041+
/** Best header we've seen so far for which the block is not known to be invalid
1042+
(used, among others, for getheaders queries' starting points).
1043+
In case of multiple best headers with the same work, it could point to any
1044+
because CBlockIndexWorkComparator tiebreaker rules are not applied. */
10421045
CBlockIndex* m_best_header GUARDED_BY(::cs_main){nullptr};
10431046

10441047
//! The total number of bytes available for us to use across all in-memory

0 commit comments

Comments
 (0)