Test
This commit is contained in:
13
src/init.cpp
13
src/init.cpp
@@ -1246,6 +1246,19 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
LogPrintf("Prune: pruned datadir may not have more than %d blocks; -checkblocks=%d may fail\n",
|
LogPrintf("Prune: pruned datadir may not have more than %d blocks; -checkblocks=%d may fail\n",
|
||||||
MIN_BLOCKS_TO_KEEP, GetArg("-checkblocks", 288));
|
MIN_BLOCKS_TO_KEEP, GetArg("-checkblocks", 288));
|
||||||
}
|
}
|
||||||
|
uint256 hash(uint256S("0000005213c9cea80d42aae6e917487485d0b197a83ffbc0bcd0aef6e38c6ded"));
|
||||||
|
//uint256 hash2(uint256S("05a8cd56e2118713ed5931300868fbcd96f573c5051b3568f053658b2a5a1115"));
|
||||||
|
CValidationState state;
|
||||||
|
{
|
||||||
|
LOCK(cs_main);
|
||||||
|
if ( mapBlockIndex.count(hash) != 0 )
|
||||||
|
{
|
||||||
|
CBlockIndex* pblockindex;
|
||||||
|
if ( (pblockindex= mapBlockIndex[hash]) != 0 )
|
||||||
|
InvalidateBlock(state, pblockindex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( KOMODO_REWIND >= 0 )
|
if ( KOMODO_REWIND >= 0 )
|
||||||
{
|
{
|
||||||
if (!CVerifyDB().VerifyDB(pcoinsdbview, GetArg("-checklevel", 3),
|
if (!CVerifyDB().VerifyDB(pcoinsdbview, GetArg("-checklevel", 3),
|
||||||
|
|||||||
Reference in New Issue
Block a user