| 11 | using namespace std; |
| 12 | |
| 13 | static 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 | |
| 22 | static bool GenPendingDelegates(CBlock &block, uint32_t delegateNum, CCacheWrapper &cw, |
| 23 | const VoteDelegateVector activeDelegates, |
no test coverage detected