From 13751895c73eae98bd93a898099fd579a1d74fdd Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 8 Aug 2018 12:08:29 +0100 Subject: [PATCH] Move RewindBlockIndex log message inside rewindLength check --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 264d242e1..54928d3f1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4249,10 +4249,10 @@ bool RewindBlockIndex(const CChainParams& params, bool& clearWitnessCaches) // nHeight is now the height of the first insufficiently-validated block, or tipheight + 1 auto rewindLength = chainActive.Height() - nHeight; - LogPrintf("*** First insufficiently validated block at height %d, rewind length %d\n", nHeight, rewindLength); clearWitnessCaches = false; if (rewindLength > 0) { + LogPrintf("*** First insufficiently validated block at height %d, rewind length %d\n", nHeight, rewindLength); const uint256 *phashFirstInsufValidated = chainActive[nHeight]->phashBlock; auto networkID = params.NetworkIDString();