Added CBudgetManager::ToString

This commit is contained in:
Evan Duffield 2015-07-15 14:21:21 -07:00
parent 21769085ec
commit ffed6dc948
2 changed files with 13 additions and 1 deletions

View File

@ -1596,3 +1596,15 @@ bool CFinalizedBudgetVote::SignatureValid()
return true;
}
std::string CBudgetManager::ToString() const
{
std::ostringstream info;
info << "Proposals: " << (int)mapProposals.size() <<
", Budgets: " << (int)mapFinalizedBudgets.size();
return info.str();
}

View File

@ -133,7 +133,7 @@ public:
mapSeenFinalizedBudgetVotes.clear();
}
void CheckAndRemove();
std::string ToString() {return "not implemented";}
std::string ToString() const;
ADD_SERIALIZE_METHODS;