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
a31395b5da
commit
c3ab6a374a
6 changed files with 43 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue