mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Better logging of untrusted validations. (To make sure there's no bug.)
This commit is contained in:
@@ -1056,8 +1056,16 @@ static void checkValidation(Job&, SerializedValidation::pointer val, uint256 sig
|
||||
return;
|
||||
}
|
||||
|
||||
std::string source;
|
||||
Peer::pointer lp = peer.lock();
|
||||
if (lp)
|
||||
source = lp->getDisplayName();
|
||||
else
|
||||
source = "unknown";
|
||||
|
||||
std::set<uint64> peers;
|
||||
if (theApp->getOPs().recvValidation(val) && theApp->getSuppression().swapSet(signingHash, peers, SF_RELAYED))
|
||||
if (theApp->getOPs().recvValidation(val, source) &&
|
||||
theApp->getSuppression().swapSet(signingHash, peers, SF_RELAYED))
|
||||
{
|
||||
PackedMessage::pointer message = boost::make_shared<PackedMessage>(*packet, ripple::mtVALIDATION);
|
||||
theApp->getConnectionPool().relayMessageBut(peers, message);
|
||||
|
||||
Reference in New Issue
Block a user