aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-01-11 19:19:04 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-03-11 13:49:35 +0100
commitfa808fb74972637840675e310f6d4a0f06028d61 (patch)
tree1d5d0f281fd68641f230493e977d00dad3981d4d /src
parentfa1d62434843866d242bff9f9c55cb838a4f0d83 (diff)
refactor: Make error() return type void
This is needed for the next commit to compile.
Diffstat (limited to 'src')
-rw-r--r--src/logging.h3
-rw-r--r--src/node/blockstorage.cpp3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/logging.h b/src/logging.h
index 525e0aec6d..abeb959215 100644
--- a/src/logging.h
+++ b/src/logging.h
@@ -264,10 +264,9 @@ static inline void LogPrintf_(const std::string& logging_function, const std::st
#define LogPrint(category, ...) LogDebug(category, __VA_ARGS__)
template <typename... Args>
-bool error(const char* fmt, const Args&... args)
+void error(const char* fmt, const Args&... args)
{
LogPrintf("ERROR: %s\n", tfm::format(fmt, args...));
- return false;
}
#endif // BITCOIN_LOGGING_H
diff --git a/src/node/blockstorage.cpp b/src/node/blockstorage.cpp
index ed59bbfe5d..ad1b3acedf 100644
--- a/src/node/blockstorage.cpp
+++ b/src/node/blockstorage.cpp
@@ -1102,9 +1102,10 @@ bool BlockManager::ReadRawBlockFromDisk(std::vector<uint8_t>& block, const FlatF
filein >> blk_start >> blk_size;
if (blk_start != GetParams().MessageStart()) {
- return error("%s: Block magic mismatch for %s: %s versus expected %s", __func__, pos.ToString(),
+ error("%s: Block magic mismatch for %s: %s versus expected %s", __func__, pos.ToString(),
HexStr(blk_start),
HexStr(GetParams().MessageStart()));
+ return false;
}
if (blk_size > MAX_SIZE) {