adding confirm_ack to_string() (#3987)

* adding confirm_ack to_string()

Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
This commit is contained in:
Ian Cunningham 2023-01-09 08:00:59 -06:00 committed by GitHub
commit d202749fb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -1011,6 +1011,11 @@ std::size_t nano::confirm_ack::size (std::size_t count)
return result;
}
std::string nano::confirm_ack::to_string () const
{
return header.to_string () + "\n" + vote->to_json ();
}
/*
* frontier_req
*/

View file

@ -210,8 +210,9 @@ public:
void serialize (nano::stream &) const override;
void visit (nano::message_visitor &) const override;
bool operator== (nano::confirm_ack const &) const;
std::shared_ptr<nano::vote> vote;
static std::size_t size (std::size_t count);
std::string to_string () const;
std::shared_ptr<nano::vote> vote;
};
class frontier_req final : public message