diff options
author | fyquah <fyquah@protonmail.com> | 2021-02-27 17:39:09 +0000 |
---|---|---|
committer | Kiminuo <kiminuo@protonmail.com> | 2021-10-05 10:42:34 +0200 |
commit | 51dbc167e98daab317baa80cf80bfda337672dab (patch) | |
tree | 69957736fc65466b945e0fedd9a9527f30f4bb02 /src/rpc/blockchain.h | |
parent | 3cc95345ca49b87e8caca9a0e6418c63ae1e463a (diff) | |
download | bitcoin-51dbc167e98daab317baa80cf80bfda337672dab.tar.xz |
rpc: Add level 3 verbosity to getblock RPC call.
Display the prevout in transaction inputs when calling getblock level 3
verbosity.
Co-authored-by: Luke Dashjr <luke_github1@dashjr.org>
Co-authored-by: 0xB10C <19157360+0xB10C@users.noreply.github.com>
Diffstat (limited to 'src/rpc/blockchain.h')
-rw-r--r-- | src/rpc/blockchain.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h index 5143de0196..d9c6761f47 100644 --- a/src/rpc/blockchain.h +++ b/src/rpc/blockchain.h @@ -6,6 +6,7 @@ #define BITCOIN_RPC_BLOCKCHAIN_H #include <consensus/amount.h> +#include <core_io.h> #include <streams.h> #include <sync.h> @@ -38,7 +39,7 @@ double GetDifficulty(const CBlockIndex* blockindex); void RPCNotifyBlockChange(const CBlockIndex*); /** Block description to JSON */ -UniValue blockToJSON(const CBlock& block, const CBlockIndex* tip, const CBlockIndex* blockindex, TxVerbosity verbosity = TxVerbosity::SHOW_TXID) LOCKS_EXCLUDED(cs_main); +UniValue blockToJSON(const CBlock& block, const CBlockIndex* tip, const CBlockIndex* blockindex, TxVerbosity verbosity) LOCKS_EXCLUDED(cs_main); /** Mempool information to JSON */ UniValue MempoolInfoToJSON(const CTxMemPool& pool); |