Logging improvements.

This commit is contained in:
JoelKatz
2012-11-05 02:05:51 -08:00
parent 17a911121d
commit e4b954c30c
3 changed files with 21 additions and 1 deletions

View File

@@ -766,7 +766,10 @@ bool NetworkOPs::gotTXData(const boost::shared_ptr<Peer>& peer, const uint256& h
const std::list<SHAMapNode>& nodeIDs, const std::list< std::vector<unsigned char> >& nodeData)
{
if (!haveConsensusObject())
{
cLog(lsWARNING) << "Got TX data with no consensus object";
return false;
}
return mConsensus->peerGaveNodes(peer, hash, nodeIDs, nodeData);
}