Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Lines | |||||
* non-empty | * non-empty | ||||
* - "statusbar": get all warnings | * - "statusbar": get all warnings | ||||
* - "gui": get all warnings, translated (where possible) for GUI | * - "gui": get all warnings, translated (where possible) for GUI | ||||
* This function only returns the highest priority warning of the set selected | * This function only returns the highest priority warning of the set selected | ||||
* by strFor. | * by strFor. | ||||
*/ | */ | ||||
std::string GetWarnings(const std::string &strFor); | std::string GetWarnings(const std::string &strFor); | ||||
/** 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 Config &config, const uint256 &hash, | bool GetTransaction(const Config &config, const txhash_t &hash, | ||||
CTransactionRef &tx, uint256 &hashBlock); | CTransactionRef &tx, uint256 &hashBlock); | ||||
/** Find the best known block, and make it the tip of the block chain */ | /** Find the best known block, and make it the tip of the block chain */ | ||||
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>()); | ||||
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params &consensusParams); | CAmount 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 358 Lines • Show Last 20 Lines |