doc: add comment for g_best_block

This commit is contained in:
James O'Beirne 2021-09-15 15:46:29 -04:00
parent ac4051d891
commit 665072a36d
No known key found for this signature in database
GPG key ID: 7A935DADB2C44F05

View file

@ -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.