Clean up block audit page & tweak color scheme

This commit is contained in:
Mononaut committed 2022-10-28 18:49:28 -06:00
1 parent a9a4b217c9
commit ba275c87d3
8 files changed
+222 -75

No files matched your search

+6
View File
@@ -238,6 +238,12 @@ class MiningRoutes {
public async $getBlockAudit(req: Request, res: Response) {
try {
const audit = await BlocksAuditsRepository.$getBlockAudit(req.params.hash);
if (!audit) {
res.status(404).send(`This block has not been audited.`);
return;
}
res.header('Pragma', 'public');
res.header('Cache-control', 'public');
res.setHeader('Expires', new Date(Date.now() + 1000 * 3600 * 24).toUTCString());
+1 -1
View File
@@ -413,7 +413,7 @@ class WebsocketHandler {
let mBlocks: undefined | MempoolBlock[];
let mBlockDeltas: undefined | MempoolBlockDelta[];
let matchRate = 0;
let matchRate;
const _memPool = memPool.getMempool();
if (Common.indexingEnabled()) {