More detail and output improvements to command bus "listpeers," and a little cleanup.

This commit is contained in:
Adam Ierymenko 2013-08-06 11:50:56 -04:00
parent 499ac2699f
commit 5f8a3f4a7f
2 changed files with 24 additions and 7 deletions

View file

@ -347,6 +347,19 @@ public:
_vRevision = vrev;
}
/**
* @return Remote version in string form or '?' if unknown
*/
inline std::string remoteVersion() const
{
if ((_vMajor)||(_vMinor)||(_vRevision)) {
char tmp[32];
sprintf(tmp,"%u.%u.%u",_vMajor,_vMinor,_vRevision);
return std::string(tmp);
}
return std::string("?");
}
/**
* Get and reset dirty flag
*