Merge branch 'master' into natsoni/tapscript-multisig-feedback

This commit is contained in:
mononaut 2025-03-29 10:49:00 +08:00 committed by GitHub
commit 426821c40f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');
} }
} }