aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2021-09-15 15:46:29 -0400
committerJames O'Beirne <james.obeirne@pm.me>2021-09-15 15:46:29 -0400
commit665072a36df2e4c88705fedd4ac7c955d7f6a488 (patch)
tree6135d1763e4ef79a70fba056e1175fa48a9c6349 /src/validation.h
parentac4051d891e2d5c8ac130da16b85b9d880b44720 (diff)
downloadbitcoin-665072a36df2e4c88705fedd4ac7c955d7f6a488.tar.xz
doc: add comment for g_best_block
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h
index 4fc46439cc..d457f1ac65 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -109,6 +109,7 @@ extern RecursiveMutex cs_main;
typedef std::unordered_map<uint256, CBlockIndex*, BlockHasher> BlockMap;
extern Mutex g_best_block_mutex;
extern std::condition_variable g_best_block_cv;
+/** Used to notify getblocktemplate RPC of new tips. */
extern uint256 g_best_block;
/** Whether there are dedicated script-checking threads running.
* False indicates all script checking is done on the main threadMessageHandler thread.