Add regtest mode with a very large OP_TRUE output

This commit is contained in:
Matt Corallo 2015-06-03 12:47:29 -07:00
parent a31395b5da
commit c3ab6a374a
6 changed files with 43 additions and 9 deletions

View file

@ -1191,7 +1191,6 @@ bool AppInit2(boost::thread_group& threadGroup)
strErrors << _("Cannot downgrade wallet") << "\n";
pwalletMain->SetMaxVersion(nMaxVersion);
}
if (fFirstRun)
{
// Create new keyUser and set as default key
@ -1212,6 +1211,11 @@ bool AppInit2(boost::thread_group& threadGroup)
RegisterValidationInterface(pwalletMain);
CBlock block = Params().GenesisBlock();
BOOST_FOREACH(const CTransaction &tx, block.vtx) {
SyncWithWallets(tx, &block);
}
CBlockIndex *pindexRescan = chainActive.Tip();
if (GetBoolArg("-rescan", false))
pindexRescan = chainActive.Genesis();