aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-05-20 08:32:41 +0100
committerfanquake <fanquake@gmail.com>2022-05-20 08:36:00 +0100
commita39002e0c64220624336e344b870447d872b4810 (patch)
tree3f224bd01238c1f095c0ffffa8d8cbc79be6bd22 /src/rpc
parent4a8709821e6467f6ddd108caa8e23f86e7048e50 (diff)
parentfafae678f6cd8aaca2be8ece501b258160f7fbfa (diff)
downloadbitcoin-a39002e0c64220624336e344b870447d872b4810.tar.xz
Merge bitcoin/bitcoin#25170: build: Enable RPC_DOC_CHECK on --enable-debug
fafae678f6cd8aaca2be8ece501b258160f7fbfa build: Enable RPC_DOC_CHECK on --enable-debug (MacroFake) Pull request description: This probably makes no large difference, as the setting is already enabled by default in the functional tests. However, I think it is nice to also enable it in debug builds by default to catch issues while manually testing without the runtime flags specified. See also https://github.com/bitcoin/bitcoin/issues/24709 ACKs for top commit: vincenzopalazzo: utACK https://github.com/bitcoin/bitcoin/pull/25170/commits/fafae678f6cd8aaca2be8ece501b258160f7fbfa Tree-SHA512: cea3276fc9b5a3bc0f6d9819be9a50b19ecf762729d3e3975abdf00da06beaa3f664b18a826fbab1fedd9143bc0624a95a490bfe40c4b5b0a0f94dbc565ce738
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/util.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h
index 6e23caff6c..abbc4c66fe 100644
--- a/src/rpc/util.h
+++ b/src/rpc/util.h
@@ -22,7 +22,13 @@
#include <variant>
#include <vector>
-static constexpr bool DEFAULT_RPC_DOC_CHECK{false};
+static constexpr bool DEFAULT_RPC_DOC_CHECK{
+#ifdef RPC_DOC_CHECK
+ true
+#else
+ false
+#endif
+};
/**
* String used to describe UNIX epoch time in documentation, factored out to a