aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2021-12-08 08:01:46 -0500
committerRussell Yanofsky <russ@yanofsky.org>2022-01-06 22:14:16 -0500
commite5b6aef61221b621ad77b5f075a16897e08835bf (patch)
tree806d75501035fd224de6e3b17a7f9fa3bab3dd8d /src/node
parentf7086fd8ff084ab0dd656d75b7485e59263bdfd8 (diff)
Move CBlockFileInfo::ToString method where class is declared
CBlockFileInfo class is declared in src/chain.h, so move ToString definition to src/chain.cpp instead of src/node/blockstorage.cpp
Diffstat (limited to 'src/node')
-rw-r--r--src/node/blockstorage.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/node/blockstorage.cpp b/src/node/blockstorage.cpp
index ce8300f504..808e7a93a5 100644
--- a/src/node/blockstorage.cpp
+++ b/src/node/blockstorage.cpp
@@ -473,14 +473,7 @@ void CleanupBlockRevFiles()
remove(item.second);
}
}
-} // namespace node
-std::string CBlockFileInfo::ToString() const
-{
- return strprintf("CBlockFileInfo(blocks=%u, size=%u, heights=%u...%u, time=%s...%s)", nBlocks, nSize, nHeightFirst, nHeightLast, FormatISO8601Date(nTimeFirst), FormatISO8601Date(nTimeLast));
-}
-
-namespace node {
CBlockFileInfo* BlockManager::GetBlockFileInfo(size_t n)
{
LOCK(cs_LastBlockFile);