mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-05-17 23:56:39 +00:00
move-only: Move NDEBUG compile time check to util/check
This commit is contained in:
parent
eac65d99dd
commit
fa457fbd33
@ -13,10 +13,9 @@
|
|||||||
#include <consensus/validation.h>
|
#include <consensus/validation.h>
|
||||||
#include <hash.h>
|
#include <hash.h>
|
||||||
#include <index/blockfilterindex.h>
|
#include <index/blockfilterindex.h>
|
||||||
#include <validation.h>
|
|
||||||
#include <merkleblock.h>
|
#include <merkleblock.h>
|
||||||
#include <netmessagemaker.h>
|
|
||||||
#include <netbase.h>
|
#include <netbase.h>
|
||||||
|
#include <netmessagemaker.h>
|
||||||
#include <policy/fees.h>
|
#include <policy/fees.h>
|
||||||
#include <policy/policy.h>
|
#include <policy/policy.h>
|
||||||
#include <primitives/block.h>
|
#include <primitives/block.h>
|
||||||
@ -26,16 +25,14 @@
|
|||||||
#include <scheduler.h>
|
#include <scheduler.h>
|
||||||
#include <tinyformat.h>
|
#include <tinyformat.h>
|
||||||
#include <txmempool.h>
|
#include <txmempool.h>
|
||||||
#include <util/system.h>
|
#include <util/check.h> // For NDEBUG compile time check
|
||||||
#include <util/strencodings.h>
|
#include <util/strencodings.h>
|
||||||
|
#include <util/system.h>
|
||||||
|
#include <validation.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
|
|
||||||
#if defined(NDEBUG)
|
|
||||||
# error "Bitcoin cannot be compiled without assertions."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** Expiration time for orphan transactions in seconds */
|
/** Expiration time for orphan transactions in seconds */
|
||||||
static constexpr int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60;
|
static constexpr int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60;
|
||||||
/** Minimum time between orphan transactions expire time checks in seconds */
|
/** Minimum time between orphan transactions expire time checks in seconds */
|
||||||
|
@ -42,4 +42,8 @@ class NonFatalCheckError : public std::runtime_error
|
|||||||
} \
|
} \
|
||||||
} while (false)
|
} while (false)
|
||||||
|
|
||||||
|
#if defined(NDEBUG)
|
||||||
|
#error "Cannot compile without assertions!"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // BITCOIN_UTIL_CHECK_H
|
#endif // BITCOIN_UTIL_CHECK_H
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
#include <ui_interface.h>
|
#include <ui_interface.h>
|
||||||
#include <uint256.h>
|
#include <uint256.h>
|
||||||
#include <undo.h>
|
#include <undo.h>
|
||||||
|
#include <util/check.h> // For NDEBUG compile time check
|
||||||
#include <util/moneystr.h>
|
#include <util/moneystr.h>
|
||||||
#include <util/rbf.h>
|
#include <util/rbf.h>
|
||||||
#include <util/strencodings.h>
|
#include <util/strencodings.h>
|
||||||
@ -51,10 +52,6 @@
|
|||||||
|
|
||||||
#include <boost/algorithm/string/replace.hpp>
|
#include <boost/algorithm/string/replace.hpp>
|
||||||
|
|
||||||
#if defined(NDEBUG)
|
|
||||||
# error "Bitcoin cannot be compiled without assertions."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MICRO 0.000001
|
#define MICRO 0.000001
|
||||||
#define MILLI 0.001
|
#define MILLI 0.001
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user