mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix bug that can cause crash.
This commit is contained in:
@@ -929,7 +929,8 @@ void LedgerAcquireMaster::gotLedgerData(Job&, uint256 hash,
|
||||
if (!ledger)
|
||||
{
|
||||
cLog(lsTRACE) << "Got data for ledger we're not acquiring";
|
||||
peer->punishPeer(LT_InvalidRequest);
|
||||
if (peer)
|
||||
peer->punishPeer(LT_InvalidRequest);
|
||||
return;
|
||||
}
|
||||
ledger->noAwaitData();
|
||||
|
||||
Reference in New Issue
Block a user