aboutsummaryrefslogtreecommitdiff
path: root/src/core_io.h
diff options
context:
space:
mode:
authorfyquah <fyquah@protonmail.com>2021-03-01 20:03:35 +0000
committerKiminuo <kiminuo@protonmail.com>2021-10-05 10:42:10 +0200
commit3cc95345ca49b87e8caca9a0e6418c63ae1e463a (patch)
tree67c4a41f26bdcdc1560edd40c5ec3945f530ec53 /src/core_io.h
parent816e15ee81a2029cde6b4f9fe6fb93e75478c903 (diff)
downloadbitcoin-3cc95345ca49b87e8caca9a0e6418c63ae1e463a.tar.xz
rpc: Replace boolean argument for tx details with enum class.
Co-authored-by: Luke Dashjr <luke_github1@dashjr.org> Co-authored-by: 0xB10C <19157360+0xB10C@users.noreply.github.com>
Diffstat (limited to 'src/core_io.h')
-rw-r--r--src/core_io.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core_io.h b/src/core_io.h
index be93a17efe..b545d0b59e 100644
--- a/src/core_io.h
+++ b/src/core_io.h
@@ -20,6 +20,14 @@ class uint256;
class UniValue;
class CTxUndo;
+/**
+ * Verbose level for block's transaction
+ */
+enum class TxVerbosity {
+ SHOW_TXID, //!< Only TXID for each block's transaction
+ SHOW_DETAILS //!< Include TXID, inputs, outputs, and other common block's transaction information
+};
+
// core_read.cpp
CScript ParseScript(const std::string& s);
std::string ScriptToAsmStr(const CScript& script, const bool fAttemptSighashDecode = false);