aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-10-20 13:36:36 -0700
committerJeff Garzik <jgarzik@exmulti.com>2012-10-20 13:36:36 -0700
commit38ac953b9df1f7a884c1ef0e94301e14c4e7477d (patch)
tree03ba74b23e9ccf077fc234e02af068cf40397fd1 /src/main.h
parentdee0ee2ac9d6feb49eac9683c01a0eeed4389449 (diff)
parent66b02c93e69cfeaec6e7fa19a03bfb2649025a56 (diff)
Merge pull request #1880 from sipa/threadimport
Move external block import to separate thread
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h3
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);