Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 415 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Retrieve a transaction (from memory pool, or from disk, if possible). | * Retrieve a transaction (from memory pool, or from disk, if possible). | ||||
*/ | */ | ||||
bool GetTransaction(const Consensus::Params ¶ms, const TxId &txid, | bool GetTransaction(const Consensus::Params ¶ms, const TxId &txid, | ||||
CTransactionRef &tx, uint256 &hashBlock, | CTransactionRef &tx, uint256 &hashBlock, | ||||
bool fAllowSlow = false, CBlockIndex *blockIndex = nullptr); | bool fAllowSlow = false, CBlockIndex *blockIndex = nullptr); | ||||
/** | /** | ||||
* Find the best known block, and make it the active tip of the block chain. | * Find the best known block, and make it the tip of the block chain | ||||
* If it fails, the tip is not updated. | |||||
* | |||||
* pblock is either nullptr or a pointer to a block that is already loaded | |||||
* in memory (to avoid loading it from disk again). | |||||
* | |||||
* Returns true if a new chain tip was set. | |||||
*/ | */ | ||||
bool ActivateBestChain( | bool ActivateBestChain( | ||||
const Config &config, CValidationState &state, | const Config &config, CValidationState &state, | ||||
std::shared_ptr<const CBlock> pblock = std::shared_ptr<const CBlock>()); | std::shared_ptr<const CBlock> pblock = std::shared_ptr<const CBlock>()); | ||||
Amount GetBlockSubsidy(int nHeight, const Consensus::Params &consensusParams); | Amount GetBlockSubsidy(int nHeight, const Consensus::Params &consensusParams); | ||||
/** | /** | ||||
* Guess verification progress (as a fraction between 0.0=genesis and | * Guess verification progress (as a fraction between 0.0=genesis and | ||||
▲ Show 20 Lines • Show All 300 Lines • Show Last 20 Lines |