#include "alert.h"
#include "checkpoints.h"
#include "db.h"
+#include "txdb.h"
#include "net.h"
#include "init.h"
#include "ui_interface.h"
int64 nTransactionFee = MIN_TX_FEE;
bool fStakeUsePooledKeys = false;
+// Used during database migration.
+bool fDisableSignatureChecking = false;
+
+
//////////////////////////////////////////////////////////////////////////////
//
// dispatching functions
if (!SetBestChain(txdb, pindexNew))
return false;
- txdb.Close();
-
if (pindexNew == pindexBest)
{
// Notify UI to display prev block's coinbase if it was ours
}
}
-bool LoadExternalBlockFile(FILE* fileIn)
+bool LoadExternalBlockFile(FILE* fileIn, ExternalBlockFileProgress *progress)
{
int64 nStart = GetTimeMillis();
nPos += 4 + nSize;
}
}
+ if (progress != NULL)
+ (*progress)(4 + nSize);
}
}
catch (std::exception &e) {