We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0596aa4 commit c75e3d2Copy full SHA for c75e3d2
src/rest.cpp
@@ -305,8 +305,10 @@ static bool rest_block(const std::any& context,
305
if (chainman.m_blockman.IsBlockPruned(pblockindex))
306
return RESTERR(req, HTTP_NOT_FOUND, hashStr + " not available (pruned data)");
307
308
- if (!ReadBlockFromDisk(block, pblockindex, chainman.GetParams().GetConsensus()))
309
- return RESTERR(req, HTTP_NOT_FOUND, hashStr + " not found");
+ }
+
310
+ if (!ReadBlockFromDisk(block, pblockindex, chainman.GetParams().GetConsensus())) {
311
+ return RESTERR(req, HTTP_NOT_FOUND, hashStr + " not found");
312
}
313
314
switch (rf) {
0 commit comments