Temporarily disable hard fail on some checks.

This commit is contained in:
JoelKatz
2012-10-04 23:47:50 -07:00
parent 2a6ce337b2
commit 94b2e30225

View File

@@ -761,9 +761,11 @@ void Peer::recvValidation(newcoin::TMValidation& packet)
return;
}
#ifndef TRUST_NETWORK
// The four #ifndef/#endif's are commented out temporarily to avoid
// an update hassle. They can be removed once all nodes are running this code
//#ifndef TRUST_NETWORK
try
#endif
//#endif
{
Serializer s(packet.validation());
SerializerIterator sit(s);
@@ -789,13 +791,13 @@ void Peer::recvValidation(newcoin::TMValidation& packet)
theApp->getConnectionPool().relayMessage(this, message);
}
}
#ifndef TRUST_NETWORK
//#ifndef TRUST_NETWORK
catch (...)
{
Log(lsWARNING) << "Exception processing validation";
punishPeer(PP_UNKNOWN_REQUEST);
}
#endif
//#endif
}
void Peer::recvGetValidation(newcoin::TMGetValidations& packet)