Skip to content

Commit

Permalink
Merge pull request #2436 from bitshares/update-p2p-logging
Browse files Browse the repository at this point in the history
Define macros before including headers
  • Loading branch information
abitmore authored May 2, 2021
2 parents 34341ee + ffd69a5 commit 1dbf1ad
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions libraries/net/node_impl.hxx
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
#pragma once
#include <memory>
#include <mutex>
#include <fc/thread/thread.hpp>
#include <fc/log/logger.hpp>
#include <fc/network/tcp_socket.hpp>
#include <graphene/chain/config.hpp>
#include <graphene/protocol/types.hpp>
#include <graphene/net/node.hpp>
#include <graphene/net/core_messages.hpp>
#include <graphene/net/peer_connection.hpp>

namespace graphene { namespace net { namespace detail {

namespace bmi = boost::multi_index;

#define P2P_IN_DEDICATED_THREAD

Expand All @@ -30,6 +16,21 @@ namespace bmi = boost::multi_index;
#define testnetlog(...) do {} while (0)
#endif

#include <memory>
#include <mutex>
#include <fc/thread/thread.hpp>
#include <fc/log/logger.hpp>
#include <fc/network/tcp_socket.hpp>
#include <graphene/chain/config.hpp>
#include <graphene/protocol/types.hpp>
#include <graphene/net/node.hpp>
#include <graphene/net/core_messages.hpp>
#include <graphene/net/peer_connection.hpp>

namespace graphene { namespace net { namespace detail {

namespace bmi = boost::multi_index;

/*******
* A class to wrap std::unordered_set for multithreading
*/
Expand Down

0 comments on commit 1dbf1ad

Please sign in to comment.