Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Variables
cs_main.h File Reference
#include <sync.h>
Include dependency graph for cs_main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

RecursiveMutex cs_main
 Mutex to guard access to validation specific variables, such as reading or changing the chainstate.
 

Variable Documentation

◆ cs_main

RecursiveMutex cs_main
extern

Mutex to guard access to validation specific variables, such as reading or changing the chainstate.

This may also need to be locked when updating the transaction pool, e.g. on AcceptToMemoryPool. See CTxMemPool::cs comment for details.

The transaction pool has a separate lock to allow reading from it and the chainstate at the same time.

Definition at line 7 of file cs_main.cpp.