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

Method ToString

src/alert.cpp:44–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44string CUnsignedAlert::ToString() const {
45 string strSetCancel;
46 for(auto n:setCancel)
47 strSetCancel += strprintf("%d ", n);
48
49 string strSetSubVer;
50 for(auto str:setSubVer)
51 strSetSubVer += "\"" + str + "\" ";
52
53 return strprintf(
54 "CAlert(\n"
55 " nVersion = %d\n"
56 " nRelayUntil = %d\n"
57 " nExpiration = %d\n"
58 " nID = %d\n"
59 " nCancel = %d\n"
60 " setCancel = %s\n"
61 " nMinVer = %d\n"
62 " nMaxVer = %d\n"
63 " setSubVer = %s\n"
64 " nPriority = %d\n"
65 " strComment = \"%s\"\n"
66 " strStatusBar = \"%s\"\n"
67 ")\n",
68 nVersion,
69 nRelayUntil,
70 nExpiration,
71 nID,
72 nCancel,
73 strSetCancel,
74 nMinVer,
75 nMaxVer,
76 strSetSubVer,
77 nPriority,
78 strComment,
79 strStatusBar);
80}
81
82void CUnsignedAlert::Print() const { LogPrint(BCLog::INFO, "%s", ToString()); }
83

Callers 15

AppInitFunction · 0.45
getnodeinfoFunction · 0.45
InvalidChainFoundFunction · 0.45
ProcessGenesisBlockFunction · 0.45
ConnectBlockFunction · 0.45
UpdateTipFunction · 0.45
DisconnectTipFunction · 0.45
ConnectTipFunction · 0.45
FindBlockPosFunction · 0.45
ProcessForkedChainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected