Add regtest mode with a very large OP_TRUE output

This commit is contained in:
Matt Corallo 2016-03-03 14:07:49 -08:00 committed by Gregory Sanders
parent e396106f76
commit 5ddb05243c
6 changed files with 24 additions and 0 deletions

View file

@ -1425,6 +1425,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
if (!pwalletMain)
return false;
}
#else // ENABLE_WALLET
LogPrintf("No wallet support compiled in!\n");
#endif // !ENABLE_WALLET
@ -1488,6 +1489,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait);
}
CBlockIndex *genesis = chainActive.Genesis();
const CBlock &genesisBlock = Params().GenesisBlock();
for (unsigned int i = 0; i<genesis->nTx ; i++) {
SyncWithWallets(genesisBlock.vtx[i], genesis, &genesisBlock);
}
// ********************************************************* Step 11: start node
if (!strErrors.str().empty())