diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-08 08:54:23 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-14 13:58:02 -0400 |
commit | fa457fbd3387661e1973a8f4e5cc2def79e0c625 (patch) | |
tree | b067c61799628baa207c4a6fadfe6dec283b6320 /src/net_processing.cpp | |
parent | eac65d99ddb27061e6ae0f9448887db86e2c0734 (diff) |
move-only: Move NDEBUG compile time check to util/check
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index d48745aef2..06a6557b3b 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -13,10 +13,9 @@ #include <consensus/validation.h> #include <hash.h> #include <index/blockfilterindex.h> -#include <validation.h> #include <merkleblock.h> -#include <netmessagemaker.h> #include <netbase.h> +#include <netmessagemaker.h> #include <policy/fees.h> #include <policy/policy.h> #include <primitives/block.h> @@ -26,16 +25,14 @@ #include <scheduler.h> #include <tinyformat.h> #include <txmempool.h> -#include <util/system.h> +#include <util/check.h> // For NDEBUG compile time check #include <util/strencodings.h> +#include <util/system.h> +#include <validation.h> #include <memory> #include <typeinfo> -#if defined(NDEBUG) -# error "Bitcoin cannot be compiled without assertions." -#endif - /** Expiration time for orphan transactions in seconds */ static constexpr int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60; /** Minimum time between orphan transactions expire time checks in seconds */ |