Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Indentation style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LefterisJP committed Mar 3, 2015
1 parent e44ab45 commit a2cb12d
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 21 deletions.
24 changes: 16 additions & 8 deletions libdevcore/StructuredLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,33 @@ class StructuredLogger

static void starting(std::string const& _clientImpl, const char* _ethVersion);
static void stopping(std::string const& _clientImpl, const char* _ethVersion);
static void p2pConnected(std::string const& _id,
static void p2pConnected(
std::string const& _id,
bi::tcp::endpoint const& _addr,
std::chrono::system_clock::time_point const& _ts,
std::string const& _remoteVersion,
unsigned int _numConnections);
unsigned int _numConnections
);
static void p2pDisconnected(std::string const& _id, bi::tcp::endpoint const& _addr, unsigned int _numConnections);
static void minedNewBlock(std::string const& _hash,
static void minedNewBlock(
std::string const& _hash,
std::string const& _blockNumber,
std::string const& _chainHeadHash,
std::string const& _prevHash);
static void chainReceivedNewBlock(std::string const& _hash,
std::string const& _prevHash
);
static void chainReceivedNewBlock(
std::string const& _hash,
std::string const& _blockNumber,
std::string const& _chainHeadHash,
std::string const& _remoteID,
std::string const& _prevHash);
static void chainNewHead(std::string const& _hash,
std::string const& _prevHash
);
static void chainNewHead(
std::string const& _hash,
std::string const& _blockNumber,
std::string const& _chainHeadHash,
std::string const& _prevHash);
std::string const& _prevHash
);
static void transactionReceived(std::string const& _hash, std::string const& _remoteId);
private:
// Singleton class. Private default ctor and no copying
Expand Down
9 changes: 7 additions & 2 deletions libethereum/Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,13 @@ class Client: public MinerHost, public Interface, Worker

public:
/// New-style Constructor.
explicit Client(p2p::Host* _host, std::string const& _dbPath = std::string(), bool _forceClean = false,
u256 _networkId = 0, int _miners = -1);
explicit Client(
p2p::Host* _host,
std::string const& _dbPath = std::string(),
bool _forceClean = false,
u256 _networkId = 0,
int _miners = -1
);

/// Destructor.
virtual ~Client();
Expand Down
6 changes: 4 additions & 2 deletions libp2p/Host.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ class Host: public Worker

public:
/// Start server, listening for connections on the given port.
Host(std::string const& _clientVersion, NetworkPreferences const& _n = NetworkPreferences(),
bytesConstRef _restoreNetwork = bytesConstRef());
Host(std::string const& _clientVersion,
NetworkPreferences const& _n = NetworkPreferences(),
bytesConstRef _restoreNetwork = bytesConstRef()
);

/// Will block on network process events.
virtual ~Host();
Expand Down
15 changes: 10 additions & 5 deletions libwebthree/WebThree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,16 @@ using namespace dev::p2p;
using namespace dev::eth;
using namespace dev::shh;

WebThreeDirect::WebThreeDirect(std::string const& _clientVersion, std::string const& _dbPath, bool _forceClean,
std::set<std::string> const& _interfaces, NetworkPreferences const& _n,
bytesConstRef _network, int _miners):
m_clientVersion(_clientVersion),
m_net(_clientVersion, _n, _network)
WebThreeDirect::WebThreeDirect(
std::string const& _clientVersion,
std::string const& _dbPath,
bool _forceClean,
std::set<std::string> const& _interfaces,
NetworkPreferences const& _n,
bytesConstRef _network, int _miners
):
m_clientVersion(_clientVersion),
m_net(_clientVersion, _n, _network)
{
if (_dbPath.size())
Defaults::setDBPath(_dbPath);
Expand Down
12 changes: 8 additions & 4 deletions libwebthree/WebThree.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,14 @@ class WebThreeDirect : public WebThreeNetworkFace
public:
/// Constructor for private instance. If there is already another process on the machine using @a _dbPath, then this will throw an exception.
/// ethereum() may be safely static_cast()ed to a eth::Client*.
WebThreeDirect(std::string const& _clientVersion, std::string const& _dbPath, bool _forceClean = false,
std::set<std::string> const& _interfaces = {"eth", "shh"},
p2p::NetworkPreferences const& _n = p2p::NetworkPreferences(),
bytesConstRef _network = bytesConstRef(), int _miners = -1);
WebThreeDirect(
std::string const& _clientVersion, std::string const& _dbPath,
bool _forceClean = false,
std::set<std::string> const& _interfaces = {"eth", "shh"},
p2p::NetworkPreferences const& _n = p2p::NetworkPreferences(),
bytesConstRef _network = bytesConstRef(),
int _miners = -1
);

/// Destructor.
~WebThreeDirect();
Expand Down

0 comments on commit a2cb12d

Please sign in to comment.