Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
uint64_t nTimeLast
latest time of block in file
std::string ToString() const
unsigned int nHeightFirst
lowest height of block in file
unsigned int nHeightLast
highest height of block in file
unsigned int nBlocks
number of blocks stored in file
unsigned int nSize
number of used bytes of block file
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...