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

Function ToString

src/chain/blockdelegates.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace std;
12
13static std::string ToString(const VoteDelegateVector &activeDelegates) {
14 string s = "";
15 for (const auto &item : activeDelegates) {
16 if (s != "") s += ",";
17 s += strprintf("{regid=%s, votes=%s}", item.regid.ToString(), item.votes);
18 }
19 return strprintf("{count=%d, [%s]}", activeDelegates.size(), s);
20}
21
22static bool GenPendingDelegates(CBlock &block, uint32_t delegateNum, CCacheWrapper &cw,
23 const VoteDelegateVector activeDelegates,

Callers 1

ProcessBlockDelegatesMethod · 0.70

Calls 2

ToStringMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected