Browse Source

do it before, and return false instead of going into a loop, so cli will work

utxo_dumper
Duke Leto 6 years ago
parent
commit
d3e71794c4
  1. 15
      src/main.cpp

15
src/main.cpp

@ -2051,9 +2051,13 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
const CChainParams& chainparams = Params();
AssertLockHeld(cs_main);
int64_t FORK_HEIGHT = 235555;
// now = 232143
int64_t FORK_HEIGHT = 232173;
// hit the pause button
if(pindex->nHeight > FORK_HEIGHT) {
printf("Past fork height, sleepytime!\n");
return false;
}
bool fExpensiveChecks = true;
if (fCheckpointsEnabled) {
CBlockIndex *pindexLastCheckpoint = Checkpoints::GetLastCheckpoint(chainparams.Checkpoints());
@ -2063,13 +2067,6 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
}
}
// hit the pause button
if(pindex->nHeight == FORK_HEIGHT) {
while(1) {
sleep(1);
}
}
auto verifier = libzcash::ProofVerifier::Strict();
auto disabledVerifier = libzcash::ProofVerifier::Disabled();

Loading…
Cancel
Save