Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.h
Show All 9 Lines | |||||
class CBlock; | class CBlock; | ||||
class CBlockIndex; | class CBlockIndex; | ||||
class Config; | class Config; | ||||
class JSONRPCRequest; | class JSONRPCRequest; | ||||
UniValue getblockchaininfo(const Config &config, const JSONRPCRequest &request); | UniValue getblockchaininfo(const Config &config, const JSONRPCRequest &request); | ||||
/** | /** | ||||
* Get the difficulty of the net wrt to the given block index, or the chain tip | * Get the difficulty of the net wrt to the given block index. | ||||
* if not provided. | |||||
* | * | ||||
* @return A floating point number that is a multiple of the main net minimum | * @return A floating point number that is a multiple of the main net minimum | ||||
* difficulty (4295032833 hashes). | * difficulty (4295032833 hashes). | ||||
*/ | */ | ||||
double GetDifficulty(const CBlockIndex *blockindex); | double GetDifficulty(const CBlockIndex *blockindex); | ||||
/** Callback for when block tip changed. */ | /** Callback for when block tip changed. */ | ||||
void RPCNotifyBlockChange(bool ibd, const CBlockIndex *); | void RPCNotifyBlockChange(bool ibd, const CBlockIndex *); | ||||
Show All 15 Lines |