diff options
| author | Karl-Johan Alm <[email protected]> | 2017-04-25 17:29:24 +0900 |
|---|---|---|
| committer | Karl-Johan Alm <[email protected]> | 2017-12-05 11:03:24 +0900 |
| commit | b16795167704687d908f881dacf04d388db28cb3 (patch) | |
| tree | bfb5add6adda1dae80bf8e077df55f752866b7ea /src/validation.h | |
| parent | [rpc] Fix fVerbose parsing (remove excess if cases). (diff) | |
| download | discoin-b16795167704687d908f881dacf04d388db28cb3.tar.xz discoin-b16795167704687d908f881dacf04d388db28cb3.zip | |
[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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index 254f3e075..ec17d0d92 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); |