Log whether we processed a peer ledger proposal or not.

This commit is contained in:
JoelKatz
2012-06-18 09:23:01 -07:00
parent 2e1254cda6
commit 8f88030219
2 changed files with 5 additions and 1 deletions

View File

@@ -516,7 +516,7 @@ bool LedgerConsensus::peerPosition(LedgerProposal::pointer newPosition)
return true;
}
}
Log(lsINFO) << "Peer position " << newPosition->getProposeSeq() << "/"
Log(lsINFO) << "Processing peer proposal " << newPosition->getProposeSeq() << "/"
<< newPosition->getCurrentHash().GetHex();
currentPosition = newPosition;
SHAMap::pointer set = getTransactionTree(newPosition->getCurrentHash(), true);

View File

@@ -489,7 +489,11 @@ bool NetworkOPs::recvPropose(uint32 proposeSeq, const uint256& proposeHash,
// Is this node on our UNL?
// XXX Is this right?
if (!theApp->getUNL().nodeInUNL(naPeerPublic))
{
Log(lsINFO) << "Relay, but no process peer proposal " << proposal->getProposeSeq() << "/"
<< proposal->getCurrentHash().GetHex();
return true;
}
return consensus->peerPosition(proposal);
}