Browse Source

Style fixes

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
ae6510b135
  1. 26
      libdevcore/StructuredLogger.cpp
  2. 24
      libdevcore/StructuredLogger.h

26
libdevcore/StructuredLogger.cpp

@ -80,8 +80,11 @@ void StructuredLogger::stopping(string const& _clientImpl, const char* _ethVersi
}
}
void StructuredLogger::p2pConnected(string const& _id, bi::tcp::endpoint const& _addr,
chrono::system_clock::time_point const& _ts, string const& _remoteVersion, unsigned int _numConnections) const
void StructuredLogger::p2pConnected(string const& _id,
bi::tcp::endpoint const& _addr,
chrono::system_clock::time_point const& _ts,
string const& _remoteVersion,
unsigned int _numConnections) const
{
if (m_enabled)
{
@ -114,8 +117,10 @@ void StructuredLogger::p2pDisconnected(string const& _id, bi::tcp::endpoint cons
}
}
void StructuredLogger::minedNewBlock(string const& _hash, string const& _blockNumber,
string const& _chainHeadHash, string const& _prevHash) const
void StructuredLogger::minedNewBlock(string const& _hash,
string const& _blockNumber,
string const& _chainHeadHash,
string const& _prevHash) const
{
if (m_enabled)
{
@ -130,8 +135,11 @@ void StructuredLogger::minedNewBlock(string const& _hash, string const& _blockNu
}
}
void StructuredLogger::chainReceivedNewBlock(string const& _hash, string const& _blockNumber,
string const& _chainHeadHash, string const& _remoteID, string const& _prevHash) const
void StructuredLogger::chainReceivedNewBlock(string const& _hash,
string const& _blockNumber,
string const& _chainHeadHash,
string const& _remoteID,
string const& _prevHash) const
{
if (m_enabled)
{
@ -147,8 +155,10 @@ void StructuredLogger::chainReceivedNewBlock(string const& _hash, string const&
}
}
void StructuredLogger::chainNewHead(string const& _hash, string const& _blockNumber,
string const& _chainHeadHash, string const& _prevHash) const
void StructuredLogger::chainNewHead(string const& _hash,
string const& _blockNumber,
string const& _chainHeadHash,
string const& _prevHash) const
{
if (m_enabled)
{

24
libdevcore/StructuredLogger.h

@ -59,14 +59,24 @@ public:
void starting(std::string const& _clientImpl, const char* _ethVersion) const;
void stopping(std::string const& _clientImpl, const char* _ethVersion) const;
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) const;
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) const;
void p2pDisconnected(std::string const& _id, bi::tcp::endpoint const& _addr, unsigned int _numConnections) const;
void minedNewBlock(std::string const& _hash, std::string const& _blockNumber,
std::string const& _chainHeadHash, std::string const& _prevHash) const;
void chainReceivedNewBlock(std::string const& _hash, std::string const& _blockNumber, std::string const& _chainHeadHash,
std::string const& _remoteID, std::string const& _prevHash) const;
void chainNewHead(std::string const& _hash, std::string const& _blockNumber, std::string const& _chainHeadHash,
void minedNewBlock(std::string const& _hash,
std::string const& _blockNumber,
std::string const& _chainHeadHash,
std::string const& _prevHash) const;
void chainReceivedNewBlock(std::string const& _hash,
std::string const& _blockNumber,
std::string const& _chainHeadHash,
std::string const& _remoteID,
std::string const& _prevHash) const;
void chainNewHead(std::string const& _hash,
std::string const& _blockNumber,
std::string const& _chainHeadHash,
std::string const& _prevHash) const;
void transactionReceived(std::string const& _hash, std::string const& _remoteId) const;
private:

Loading…
Cancel
Save