Skip to content

Commit

Permalink
Fix -stop-block and -interrupt-block crashing when used on empty -dat…
Browse files Browse the repository at this point in the history
…adir (#1416)
  • Loading branch information
Jouzo authored Aug 12, 2022
1 parent e4ee211 commit 277b848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ bool fCheckBlockIndex = false;

bool fStopOrInterrupt = false;
std::string fInterruptBlockHash = "";
int fInterruptBlockHeight = 0;
int fInterruptBlockHeight = -1;
std::string fStopBlockHash = "";
int fStopBlockHeight = 0;
int fStopBlockHeight = -1;

size_t nCoinCacheUsage = 5000 * 300;
size_t nCustomMemUsage = nDefaultDbCache << 10;
Expand Down

0 comments on commit 277b848

Please sign in to comment.