test
This commit is contained in:
16
src/main.cpp
16
src/main.cpp
@@ -2706,14 +2706,18 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo
|
|||||||
}
|
}
|
||||||
if ( 1 )
|
if ( 1 )
|
||||||
{
|
{
|
||||||
while (chainActive.Tip()->nHeight > 91418 )
|
static int32_t didinit;
|
||||||
|
if ( didinit++ == 0 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"rewind ht.%d\n",chainActive.Tip()->nHeight);
|
while (chainActive.Tip()->nHeight > 91418 )
|
||||||
if ( !DisconnectTip(state) )
|
{
|
||||||
return false;
|
fprintf(stderr,"rewind ht.%d\n",chainActive.Tip()->nHeight);
|
||||||
|
if ( !DisconnectTip(state) )
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
pindexOldTip = chainActive.Tip();
|
||||||
|
pindexFork = chainActive.FindFork(pindexMostWork);
|
||||||
}
|
}
|
||||||
pindexOldTip = chainActive.Tip();
|
|
||||||
pindexFork = chainActive.FindFork(pindexMostWork);
|
|
||||||
}
|
}
|
||||||
// Build list of new blocks to connect.
|
// Build list of new blocks to connect.
|
||||||
std::vector<CBlockIndex*> vpindexToConnect;
|
std::vector<CBlockIndex*> vpindexToConnect;
|
||||||
|
|||||||
Reference in New Issue
Block a user