Make sure the genesis block is present after reindex

This commit is contained in:
Pieter Wuille
2013-01-30 21:43:36 +01:00
parent 3d29d5d623
commit 386037615a
4 changed files with 36 additions and 20 deletions

View File

@@ -28,7 +28,7 @@ struct TestingSetup {
pblocktree = new CBlockTreeDB(1 << 20, true);
pcoinsdbview = new CCoinsViewDB(1 << 23, true);
pcoinsTip = new CCoinsViewCache(*pcoinsdbview);
LoadBlockIndex();
InitBlockIndex();
bool fFirstRun;
pwalletMain = new CWallet("wallet.dat");
pwalletMain->LoadWallet(fFirstRun);