test
This commit is contained in:
@@ -2555,6 +2555,7 @@ static int64_t nTimePostConnect = 0;
|
|||||||
* corresponding to pindexNew, to bypass loading it again from disk.
|
* corresponding to pindexNew, to bypass loading it again from disk.
|
||||||
*/
|
*/
|
||||||
bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock *pblock) {
|
bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock *pblock) {
|
||||||
|
|
||||||
assert(pindexNew->pprev == chainActive.Tip());
|
assert(pindexNew->pprev == chainActive.Tip());
|
||||||
mempool.check(pcoinsTip);
|
mempool.check(pcoinsTip);
|
||||||
// Read block from disk.
|
// Read block from disk.
|
||||||
@@ -2705,12 +2706,14 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo
|
|||||||
}
|
}
|
||||||
if ( 1 )
|
if ( 1 )
|
||||||
{
|
{
|
||||||
while (chainActive.Tip()->nHeight > 91419 )
|
while (chainActive.Tip()->nHeight > 91418 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"rewind ht.%d\n",chainActive.Tip()->nHeight);
|
fprintf(stderr,"rewind ht.%d\n",chainActive.Tip()->nHeight);
|
||||||
if (!DisconnectTip(state))
|
if ( !DisconnectTip(state) )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
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