diff --git a/src/blockstore/implementations/versioncounting/VersionCountingBlock.h b/src/blockstore/implementations/versioncounting/VersionCountingBlock.h index 49264a3d..3a2d0cc4 100644 --- a/src/blockstore/implementations/versioncounting/VersionCountingBlock.h +++ b/src/blockstore/implementations/versioncounting/VersionCountingBlock.h @@ -115,6 +115,7 @@ inline bool VersionCountingBlock::_checkVersion(const cpputils::Data &data, cons if(!knownBlockVersions->checkAndUpdateVersion(lastClientId, key, version)) { cpputils::logging::LOG(cpputils::logging::WARN) << "Decrypting block " << key.ToString() << " failed due to decreasing version number. Was the block rolled back or re-introduced by an attacker?"; + return false; } return true; }