Revert "Shitty VPS limiting disk i/o should not crash a full node..."

This reverts commit c90323865a.

Turns out this is a bad idea.
This commit is contained in:
Duke Leto
2021-02-28 09:40:59 -05:00
parent bb31926051
commit cadab16cdb

View File

@@ -6740,12 +6740,16 @@ void static ProcessGetData(CNode* pfrom)
}
// Pruned nodes may have deleted the block, so check whether
// it's available before trying to send.
if (send && (mi->second->nStatus & BLOCK_HAVE_DATA)) {
if (send && (mi->second->nStatus & BLOCK_HAVE_DATA))
{
// Send block from disk
CBlock block;
if (!ReadBlockFromDisk(block, (*mi).second,1)) {
fprintf(stderr,"Cannot load block from disk, disk I/O may be limited by VPS or failing hard drive...");
} else {
if (!ReadBlockFromDisk(block, (*mi).second,1))
{
assert(!"cannot load block from disk");
}
else
{
if (inv.type == MSG_BLOCK)
{
//uint256 hash; int32_t z;