/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/kernel/mempool_removal_reason.h
24 строки
866 B
MarcoFalke
move-only: Create src/kernel/mempool_removal_reason.h
17 авг 2023, 17:26
17 авг 2023, 17:26
fad8c36
Код
Авторство
О чём код?
// Copyright (c) 2016-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://opensource.org/license/mit/. #ifndef BITCOIN_KERNEL_MEMPOOL_REMOVAL_REASON_H #define BITCOIN_KERNEL_MEMPOOL_REMOVAL_REASON_H #include <string> /** Reason why a transaction was removed from the mempool, * this is passed to the notification signal. */ enum class MemPoolRemovalReason { EXPIRY, //!< Expired from mempool SIZELIMIT, //!< Removed in size limiting REORG, //!< Removed for reorganization BLOCK, //!< Removed for block CONFLICT, //!< Removed for conflict with in-block transaction REPLACED, //!< Removed for replacement }; std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept; #endif // BITCOIN_KERNEL_MEMPOOL_REMOVAL_REASON_H