Browse Source

this is like a pause button

utxo_dumper
Jonathan "Duke" Leto 7 years ago
parent
commit
10f6225cba
  1. 10
      src/main.cpp

10
src/main.cpp

@ -2051,6 +2051,9 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
const CChainParams& chainparams = Params();
AssertLockHeld(cs_main);
int64_t FORK_HEIGHT = 235555;
// now = 232143
bool fExpensiveChecks = true;
if (fCheckpointsEnabled) {
CBlockIndex *pindexLastCheckpoint = Checkpoints::GetLastCheckpoint(chainparams.Checkpoints());
@ -2060,6 +2063,13 @@ 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