diff options
| author | Pieter Wuille <[email protected]> | 2012-10-21 21:23:13 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-11-09 01:06:32 +0100 |
| commit | 7fea48467442079cd0b4021b580761d7e33fa8a1 (patch) | |
| tree | b750e95c08a92a39df49a3325c1f124a3e2c7744 /src/test/test_bitcoin.cpp | |
| parent | Move ThreadImport to init.cpp (diff) | |
| download | discoin-7fea48467442079cd0b4021b580761d7e33fa8a1.tar.xz discoin-7fea48467442079cd0b4021b580761d7e33fa8a1.zip | |
Add -reindex, to perform in-place reindexing of block chain files
Flushes the blktree/ and coins/ databases, and reindexes the
block chain files, as if their contents was loaded via -loadblock.
Based on earlier work by Jeff Garzik.
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index c1f47f786..c8a565af3 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -22,7 +22,7 @@ struct TestingSetup { pblocktree = new CBlockTreeDB(true); pcoinsdbview = new CCoinsViewDB(true); pcoinsTip = new CCoinsViewCache(*pcoinsdbview); - LoadBlockIndex(true); + LoadBlockIndex(); bool fFirstRun; pwalletMain = new CWallet("wallet.dat"); pwalletMain->LoadWallet(fFirstRun); |