diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-09-13 14:33:52 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-10-20 01:54:10 +0200 |
commit | 66b02c93e69cfeaec6e7fa19a03bfb2649025a56 (patch) | |
tree | 414db7d5088d03e29963974fce490567e25e8649 /src/main.h | |
parent | 485d667748b776a1932e3e14dc1b9dfe2ba841d0 (diff) |
Move external block import to separate thread
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h index 68302b85ac..ea71baf902 100644 --- a/src/main.h +++ b/src/main.h @@ -68,6 +68,7 @@ extern int64 nTimeBestReceived; extern CCriticalSection cs_setpwalletRegistered; extern std::set<CWallet*> setpwalletRegistered; extern unsigned char pchMessageStart[4]; +extern bool fImporting; // Settings extern int64 nTransactionFee; @@ -92,7 +93,7 @@ void PrintBlockTree(); CBlockIndex* FindBlockByHeight(int nHeight); bool ProcessMessages(CNode* pfrom); bool SendMessages(CNode* pto, bool fSendTrickle); -bool LoadExternalBlockFile(FILE* fileIn); +void ThreadImport(void *parg); void GenerateBitcoins(bool fGenerate, CWallet* pwallet); CBlock* CreateNewBlock(CReserveKey& reservekey); void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce); |