mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-01 10:39:41 +01:00
-BEGIN VERIFY SCRIPT- sed --in-place --regexp-extended \ 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' \ $( git grep -l 'The Bitcoin Core developers' -- ':(exclude)COPYING' ':(exclude)src/ipc/libmultiprocess' ':(exclude)src/minisketch' ) -END VERIFY SCRIPT-
23 lines
722 B
C
23 lines
722 B
C
// Copyright (c) 2023-present The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_KERNEL_CS_MAIN_H
|
|
#define BITCOIN_KERNEL_CS_MAIN_H
|
|
|
|
#include <sync.h>
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
extern RecursiveMutex cs_main;
|
|
|
|
#endif // BITCOIN_KERNEL_CS_MAIN_H
|