aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2017-04-25 17:29:24 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2017-12-05 11:03:24 +0900
commitb16795167704687d908f881dacf04d388db28cb3 (patch)
treebfb5add6adda1dae80bf8e077df55f752866b7ea /src/validation.h
parenta5f5a2ce53622b8d2e3fda659e497d47c5d164b0 (diff)
downloadbitcoin-b16795167704687d908f881dacf04d388db28cb3.tar.xz
[rpc] Allow getrawtransaction to take optional blockhash to fetch transaction from a block directly.
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h
index 254f3e0754..ec17d0d92d 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -273,7 +273,7 @@ void ThreadScriptCheck();
/** Check whether we are doing an initial block download (synchronizing from disk or network) */
bool IsInitialBlockDownload();
/** Retrieve a transaction (from memory pool, or from disk, if possible) */
-bool GetTransaction(const uint256 &hash, CTransactionRef &tx, const Consensus::Params& params, uint256 &hashBlock, bool fAllowSlow = false);
+bool GetTransaction(const uint256& hash, CTransactionRef& tx, const Consensus::Params& params, uint256& hashBlock, bool fAllowSlow = false, CBlockIndex* blockIndex = nullptr);
/** Find the best known block, and make it the tip of the block chain */
bool ActivateBestChain(CValidationState& state, const CChainParams& chainparams, std::shared_ptr<const CBlock> pblock = std::shared_ptr<const CBlock>());
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams);