diff --git a/backend/src/api/pools-parser.ts b/backend/src/api/pools-parser.ts index 7243eb023..005806c1d 100644 --- a/backend/src/api/pools-parser.ts +++ b/backend/src/api/pools-parser.ts @@ -108,7 +108,7 @@ class PoolsParser { if (slug === undefined) { // Only keep alphanumerical - slug = poolNames[i].replace(/[^a-z0-9]/gi,'').toLowerCase(); + slug = poolNames[i].replace(/[^a-z0-9]/gi, '').toLowerCase(); logger.debug(`No slug found for '${poolNames[i]}', generating it => '${slug}'`); } @@ -135,10 +135,11 @@ class PoolsParser { logger.debug(`Update pools table now`); // Add new mining pools into the database - let queryAdd: string = 'INSERT INTO pools(name, link, regexes, addresses) VALUES '; + let queryAdd: string = 'INSERT INTO pools(name, link, regexes, addresses, slug) VALUES '; for (let i = 0; i < finalPoolDataAdd.length; ++i) { queryAdd += `('${finalPoolDataAdd[i].name}', '${finalPoolDataAdd[i].link}', - '${JSON.stringify(finalPoolDataAdd[i].regexes)}', '${JSON.stringify(finalPoolDataAdd[i].addresses)}'),`; + '${JSON.stringify(finalPoolDataAdd[i].regexes)}', '${JSON.stringify(finalPoolDataAdd[i].addresses)}', + ${JSON.stringify(finalPoolDataAdd[i].slug)}),`; } queryAdd = queryAdd.slice(0, -1) + ';'; @@ -180,7 +181,7 @@ class PoolsParser { const [rows]: any[] = await connection.query({ sql: 'SELECT name from pools where name="Unknown"', timeout: 120000 }); if (rows.length === 0) { await connection.query({ - sql: `INSERT INTO pools(name, link, regexes, addresses) + sql: `INSERT INTO pools(name, link, regexes, addresses, slug) VALUES("Unknown", "https://learnmeabitcoin.com/technical/coinbase-transaction", "[]", "[]", "unknown"); `}); } else { @@ -189,7 +190,7 @@ class PoolsParser { regexes='[]', addresses='[]', slug='unknown' WHERE name='Unknown' - `) + `); } } catch (e) { logger.err('Unable to insert "Unknown" mining pool'); diff --git a/frontend/src/app/components/about/about.component.html b/frontend/src/app/components/about/about.component.html index c03a3a00a..74203ab81 100644 --- a/frontend/src/app/components/about/about.component.html +++ b/frontend/src/app/components/about/about.component.html @@ -169,7 +169,7 @@ -
Tags | -
-
+
+
+ Tags |
+
+ {{ poolStats.pool.regexes }}
+ |
+
+ Tags
+ |
{{ poolStats.pool.regexes }}
Addresses |
-
- | |
Mined Blocks | + + +|
Mined Blocks | {{ formatNumber(poolStats.blockCount, this.locale, '1.0-0') }} |
Empty Blocks | + +|
+ Mined Blocks
+ {{ formatNumber(poolStats.blockCount, this.locale, '1.0-0') }}
+ |
+ |
Empty Blocks | {{ formatNumber(poolStats.emptyBlocks, this.locale, '1.0-0') }} |
+ Blocks
+ {{ formatNumber(poolStats.emptyBlocks, this.locale, '1.0-0') }}
+ |
+
Height | Timestamp | @@ -147,7 +213,9 @@
---|
Tags | -+ + + | |||||||
Tags | +||||||||
Addresses | -
-
+
+
+
+ Tags
+ |
+ Addresses |
+
+
+ |
~ |
+ Addresses
+ |
+
+
+
+ |
Mined Blocks | -+ + + |
Mined Blocks | +|
Empty Blocks | -+ + |
+ Mined Blocks
+
+
+
+ |
+ |
Empty Blocks | +|
+ Blocks
+
+
+
+ |
+