Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
validationinterface.cpp File Reference
#include <validationinterface.h>
#include <chain.h>
#include <consensus/validation.h>
#include <kernel/mempool_entry.h>
#include <kernel/mempool_removal_reason.h>
#include <kernel/types.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <util/check.h>
#include <util/log.h>
#include <util/task_runner.h>
#include <future>
#include <memory>
#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

Macros

#define ENQUEUE_AND_LOG_EVENT(event, log_msg)
#define LOG_MSG(fmt, ...)
#define LOG_EVENT(fmt, ...)

Macro Definition Documentation

◆ ENQUEUE_AND_LOG_EVENT

#define ENQUEUE_AND_LOG_EVENT ( event,
log_msg )
Value:
do { \
static_assert(std::is_rvalue_reference_v<decltype((event))>, \
"event must be passed as an rvalue"); \
static_assert(std::is_rvalue_reference_v<decltype((log_msg))>, \
"log_msg must be passed as an rvalue"); \
auto enqueue_log_msg = (log_msg); \
LOG_EVENT("Enqueuing %s", enqueue_log_msg); \
m_internals->m_task_runner->insert([local_log_msg = std::move(enqueue_log_msg), local_event = (event)] { \
LOG_EVENT("%s", local_log_msg); \
local_event(); \
}); \
} while (0)

Definition at line 159 of file validationinterface.cpp.

◆ LOG_EVENT

#define LOG_EVENT ( fmt,
... )
Value:
LogDebug(BCLog::VALIDATION, fmt, __VA_ARGS__)
#define LogDebug(category,...)
Definition log.h:143
@ VALIDATION
Definition categories.h:36

Definition at line 176 of file validationinterface.cpp.

◆ LOG_MSG

#define LOG_MSG ( fmt,
... )
Value:
(util::log::ShouldDebugLog(BCLog::VALIDATION) ? tfm::format((fmt), __VA_ARGS__) : std::string{})
void format(std::ostream &out, FormatStringCheck< sizeof...(Args)> fmt, const Args &... args)
Format list of arguments to the stream according to given format string.
bool ShouldDebugLog(Category category)
Return whether messages with specified category should be debug logged.
Definition logging.cpp:620

Definition at line 173 of file validationinterface.cpp.