Fixed get status peer address formatting crash. (#295)

This commit is contained in:
Ravin Perera
2021-04-28 14:37:26 +05:30
committed by GitHub
parent 78fb68e064
commit 954914e932
5 changed files with 33 additions and 18 deletions

View File

@@ -8,6 +8,9 @@ namespace msg::usrmsg
// Length of user random challenge bytes.
constexpr size_t CHALLENGE_LEN = 16;
// Max no. of known peers to return in get status.
constexpr const size_t MAX_KNOWN_PEERS_INFO = 10;
// Message field names
constexpr const char *FLD_HP_VERSION = "hp_version";
constexpr const char *FLD_TYPE = "type";