Update pool parser to work with no database

This commit is contained in:
nymkappa 2023-02-16 09:09:14 +09:00
parent 6cd42cfc73
commit c2f5cb9529
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -16,6 +16,11 @@ class PoolsParser {
public setMiningPools(pools): void {
this.miningPools = pools;
for (const pool of this.miningPools) {
pool.regexes = JSON.stringify(pool.tags);
pool.addresses = JSON.stringify(pool.addresses);
delete pool.tags;
}
}
/**