More detail and output improvements to command bus "listpeers," and a little cleanup.
This commit is contained in:
parent
499ac2699f
commit
5f8a3f4a7f
2 changed files with 24 additions and 7 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue