Clean up block audit page & tweak color scheme
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user