mirror of
https://github.com/mempool/mempool.git
synced 2025-09-28 19:17:39 +02:00
Merge branch 'master' into natsoni/tapscript-multisig-feedback
This commit is contained in:
@@ -406,8 +406,8 @@ class BitcoinRoutes {
|
|||||||
|
|
||||||
res.setHeader('Expires', new Date(Date.now() + 1000 * cacheDuration).toUTCString());
|
res.setHeader('Expires', new Date(Date.now() + 1000 * cacheDuration).toUTCString());
|
||||||
res.json(block);
|
res.json(block);
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
handleError(req, res, 500, 'Failed to get block');
|
handleError(req, res, e?.response?.status === 404 ? 404 : 500, 'Failed to get block');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user