mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Add regtest mode with a very large OP_TRUE output
This commit is contained in:
parent
e396106f76
commit
5ddb05243c
6 changed files with 24 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue