Skip to content

Commit

Permalink
Persistence : fix syntax for 5987063
Browse files Browse the repository at this point in the history
  • Loading branch information
zathras-crypto committed May 1, 2015
1 parent 742fce4 commit e85aa5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mastercore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ static int load_most_relevant_state()
// Note: to avoid rolling back all the way to the genesis block (which appears as if client is hung) abort after MAX_STATE_HISTORY attempts
CBlockIndex const *curTip = spBlockIndex;
int abortRollBackBlock;
if (curTip != NULL) abortRollBackBlock = curTip->nHeight - MAX_STATE_HISTORY+1;
if (curTip != NULL) abortRollBackBlock = curTip->nHeight - (MAX_STATE_HISTORY+1);
while (NULL != curTip && persistedBlocks.size() > 0 && curTip->nHeight > abortRollBackBlock) {
if (persistedBlocks.find(spBlockIndex->GetBlockHash()) != persistedBlocks.end()) {
int success = -1;
Expand Down

0 comments on commit e85aa5e

Please sign in to comment.