adding confirm_ack to_string() (#3987)
* adding confirm_ack to_string() Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
This commit is contained in:
parent
2da983f306
commit
d202749fb5
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue