Skip to content

Commit

Permalink
Remove unnecessary block uniquer argument
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Nov 11, 2023
1 parent dc7d2db commit 82db34c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions nano/node/messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,12 @@ std::string nano::publish::to_string () const
* confirm_req
*/

nano::confirm_req::confirm_req (bool & error_a, nano::stream & stream_a, nano::message_header const & header_a, nano::block_uniquer * uniquer_a) :
nano::confirm_req::confirm_req (bool & error_a, nano::stream & stream_a, nano::message_header const & header_a) :
message (header_a)
{
if (!error_a)
{
error_a = deserialize (stream_a, uniquer_a);
error_a = deserialize (stream_a);
}
}

Expand Down Expand Up @@ -552,7 +552,7 @@ void nano::confirm_req::serialize (nano::stream & stream_a) const
}
}

bool nano::confirm_req::deserialize (nano::stream & stream_a, nano::block_uniquer * uniquer_a)
bool nano::confirm_req::deserialize (nano::stream & stream_a)
{
debug_assert (header.type == nano::message_type::confirm_req);

Expand Down
4 changes: 2 additions & 2 deletions nano/node/messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ class publish final : public message
class confirm_req final : public message
{
public:
confirm_req (bool & error, nano::stream &, nano::message_header const &, nano::block_uniquer * = nullptr);
confirm_req (bool & error, nano::stream &, nano::message_header const &);
confirm_req (nano::network_constants const & constants, std::vector<std::pair<nano::block_hash, nano::root>> const &);
confirm_req (nano::network_constants const & constants, nano::block_hash const &, nano::root const &);
void serialize (nano::stream &) const override;
bool deserialize (nano::stream &, nano::block_uniquer * = nullptr);
bool deserialize (nano::stream &);
void visit (nano::message_visitor &) const override;
bool operator== (nano::confirm_req const &) const;
std::string roots_string () const;
Expand Down
2 changes: 1 addition & 1 deletion nano/node/transport/message_deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ std::unique_ptr<nano::publish> nano::transport::message_deserializer::deserializ
std::unique_ptr<nano::confirm_req> nano::transport::message_deserializer::deserialize_confirm_req (nano::stream & stream, nano::message_header const & header)
{
auto error = false;
auto incoming = std::make_unique<nano::confirm_req> (error, stream, header, &block_uniquer_m);
auto incoming = std::make_unique<nano::confirm_req> (error, stream, header);
if (!error && nano::at_end (stream))
{
return incoming;
Expand Down

0 comments on commit 82db34c

Please sign in to comment.