MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ToString

Method ToString

src/persistence/disk.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11// class CBlockFileInfo
12
13string CBlockFileInfo::ToString() const {
14 return strprintf("CBlockFileInfo(blocks=%u, size=%u, heights=%u...%u, time=%s...%s)", nBlocks,
15 nSize, nHeightFirst, nHeightLast,
16 DateTimeStrFormat("%Y-%m-%d", nTimeFirst).c_str(),
17 DateTimeStrFormat("%Y-%m-%d", nTimeLast).c_str());
18}
19
20void CBlockFileInfo::AddBlock(uint32_t nHeightIn, uint64_t nTimeIn) {
21 if (nBlocks == 0 || nHeightFirst > nHeightIn)

Callers 15

ToJsonObjMethod · 0.45
LoadBlockIndexesMethod · 0.45
PrintMethod · 0.45
ReadBaseTxFromDiskFunction · 0.45
ToStringFunction · 0.45
SetApprovalMethod · 0.45
ProcessDataMethod · 0.45
OrderToJsonMethod · 0.45
ParseLastPosMethod · 0.45
CreateActiveOrderMethod · 0.45
CreateDexOperatorMethod · 0.45
cachewrapper.cppFile · 0.45

Calls 1

DateTimeStrFormatFunction · 0.85

Tested by

no test coverage detected