Bitcoin ABC  0.26.3
P2P Digital Currency
Classes | Variables
blockindex.h File Reference
#include <arith_uint256.h>
#include <blockstatus.h>
#include <flatfile.h>
#include <primitives/block.h>
#include <sync.h>
#include <tinyformat.h>
#include <uint256.h>
Include dependency graph for blockindex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CBlockIndex
 The block chain is a tree shaped structure starting with the genesis block at the root, with each block potentially having multiple candidates to be the next block. More...
 

Variables

RecursiveMutex cs_main
 Global state. More...
 

Variable Documentation

◆ cs_main

RecursiveMutex cs_main
extern

Global state.

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 111 of file validation.cpp.