Bitcoin ABC 0.30.5
P2P Digital Currency
blockfileinfo.cpp
Go to the documentation of this file.
1// Copyright (c) 2022 The Bitcoin developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#include <blockfileinfo.h>
6
7#include <tinyformat.h>
8#include <util/time.h>
9
10std::string CBlockFileInfo::ToString() const {
11 return strprintf(
12 "CBlockFileInfo(blocks=%u, size=%u, heights=%u...%u, time=%s...%s)",
15}
uint64_t nTimeFirst
earliest time of block in file
Definition: blockfileinfo.h:26
uint64_t nTimeLast
latest time of block in file
Definition: blockfileinfo.h:28
std::string ToString() const
unsigned int nHeightFirst
lowest height of block in file
Definition: blockfileinfo.h:22
unsigned int nHeightLast
highest height of block in file
Definition: blockfileinfo.h:24
unsigned int nBlocks
number of blocks stored in file
Definition: blockfileinfo.h:16
unsigned int nSize
number of used bytes of block file
Definition: blockfileinfo.h:18
std::string FormatISO8601DateTime(int64_t nTime)
ISO 8601 formatting is preferred.
Definition: time.cpp:113
#define strprintf
Format arguments and return the string or write to given std::ostream (see tinyformat::format doc for...
Definition: tinyformat.h:1202