Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Macros | Functions
validationinterface.cpp File Reference
#include <validationinterface.h>
#include <chain.h>
#include <consensus/validation.h>
#include <kernel/chain.h>
#include <kernel/mempool_entry.h>
#include <logging.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <util/check.h>
#include <util/task_runner.h>
#include <future>
#include <unordered_map>
#include <utility>
Include dependency graph for validationinterface.cpp:

Go to the source code of this file.

Classes

class  ValidationSignalsImpl
 ValidationSignalsImpl manages a list of shared_ptr<CValidationInterface> callbacks. More...
 
struct  ValidationSignalsImpl::ListEntry
 List entries consist of a callback pointer and reference count. More...
 

Macros

#define ENQUEUE_AND_LOG_EVENT(event, fmt, name, ...)
 
#define LOG_EVENT(fmt, ...)    LogPrint(BCLog::VALIDATION, fmt "\n", __VA_ARGS__)
 

Functions

std::string RemovalReasonToString (const MemPoolRemovalReason &r) noexcept
 

Macro Definition Documentation

◆ ENQUEUE_AND_LOG_EVENT

#define ENQUEUE_AND_LOG_EVENT (   event,
  fmt,
  name,
  ... 
)
Value:
do { \
auto local_name = (name); \
LOG_EVENT("Enqueuing " fmt, local_name, __VA_ARGS__); \
m_internals->m_task_runner->insert([=] { \
LOG_EVENT(fmt, local_name, __VA_ARGS__); \
event(); \
}); \
} while (0)
const char * name
Definition: rest.cpp:48

Definition at line 159 of file validationinterface.cpp.

◆ LOG_EVENT

#define LOG_EVENT (   fmt,
  ... 
)     LogPrint(BCLog::VALIDATION, fmt "\n", __VA_ARGS__)

Definition at line 169 of file validationinterface.cpp.

Function Documentation

◆ RemovalReasonToString()

std::string RemovalReasonToString ( const MemPoolRemovalReason r)
noexcept

Definition at line 10 of file mempool_removal_reason.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: