X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fmain.h;h=328b321b13d2eb79d29fee71720d3a1f4c9be25e;hp=bd8aeeed28e3afef1e2b382c90f96855af67d81c;hb=adb8391acdf671640adb1e8be564e68b254fca69;hpb=5d0ece51961598251142744ac8e85a5d725e020e diff --git a/src/main.h b/src/main.h index bd8aeee..328b321 100644 --- a/src/main.h +++ b/src/main.h @@ -111,7 +111,12 @@ void PrintBlockTree(); CBlockIndex* FindBlockByHeight(int nHeight); bool ProcessMessages(CNode* pfrom); bool SendMessages(CNode* pto, bool fSendTrickle); -bool LoadExternalBlockFile(FILE* fileIn); + +// Processes a blk*.dat file and fires the given signal to indicate how far +// through the file the load has reached, if provided. +typedef boost::signals2::signal ExternalBlockFileProgress; +bool LoadExternalBlockFile(FILE* fileIn, ExternalBlockFileProgress *progress=NULL); + bool CheckProofOfWork(uint256 hash, unsigned int nBits); unsigned int GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfStake); int64 GetProofOfWorkReward(unsigned int nBits);