|
|
|
@ -217,7 +217,7 @@ static bool rest_block(HTTPRequest* req,
|
|
|
|
|
return RESTERR(req, HTTP_NOT_FOUND, hashStr + " not found");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (fHavePruned && !(pblockindex->nStatus & BLOCK_HAVE_DATA) && pblockindex->nTx > 0)
|
|
|
|
|
if (IsBlockPruned(pblockindex))
|
|
|
|
|
return RESTERR(req, HTTP_NOT_FOUND, hashStr + " not available (pruned data)");
|
|
|
|
|
|
|
|
|
|
if (!ReadBlockFromDisk(block, pblockindex, Params().GetConsensus()))
|
|
|
|
|