Merge branch 'master' into nymkappa/bugfix/reindex-when-fast-forward

This commit is contained in:
Felipe Knorr Kuhn
2022-05-23 21:08:54 -07:00
committed by GitHub
61 changed files with 45317 additions and 45794 deletions

View File

@@ -6,6 +6,7 @@ import bitcoinClient from './bitcoin/bitcoin-client';
import logger from '../logger';
import { Common } from './common';
import loadingIndicators from './loading-indicators';
import { escape } from 'mysql2';
class Mining {
constructor() {
@@ -106,7 +107,7 @@ class Mining {
public async $getPoolStat(slug: string): Promise<object> {
const pool = await PoolsRepository.$getPool(slug);
if (!pool) {
throw new Error(`This mining pool does not exist`);
throw new Error('This mining pool does not exist ' + escape(slug));
}
const blockCount: number = await BlocksRepository.$blockCount(pool.id);