Punish a peer that sends us unwanted ledger data.

This commit is contained in:
JoelKatz
2012-03-07 09:14:38 -08:00
parent efa2f90b34
commit f08107cd03
2 changed files with 3 additions and 0 deletions

View File

@@ -510,6 +510,8 @@ void Peer::recvGetLedger(newcoin::TMGetLedger& packet)
void Peer::recvLedger(newcoin::TMLedgerData& packet)
{
if(!theApp->getMasterLedgerAcquire().gotLedgerData(packet))
punishPeer(PP_UNWANTED_DATA);
}
void Peer::sendHello()