Skip to content

Commit

Permalink
Fix code smells in net/core_messages.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore committed Mar 6, 2021
1 parent 96b7f8c commit 50b52a1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libraries/net/include/graphene/net/core_messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,10 @@ namespace graphene { namespace net {
static const core_message_type_enum type;

graphene::protocol::precomputable_transaction trx;
trx_message() {}
trx_message(const graphene::protocol::signed_transaction& signed_trx) :
trx_message() = default;
explicit trx_message(graphene::protocol::signed_transaction&& signed_trx) :
trx(signed_trx)
{}
trx_message(graphene::protocol::signed_transaction&& signed_trx) :
trx(std::move(signed_trx))
{}
};

struct block_message
Expand Down

0 comments on commit 50b52a1

Please sign in to comment.