mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-04-02 08:58:02 +02:00
logging
This commit is contained in:
parent
74f5783dc3
commit
419eb09853
@ -77,7 +77,7 @@ export class ClientStatisticsService {
|
||||
|
||||
try {
|
||||
await this.clientStatisticsRepository.query(query);
|
||||
console.log(`Bulk updated ${this.bulkAsyncUpdates.length} statistics`)
|
||||
//console.log(`Bulk updated ${this.bulkAsyncUpdates.length} statistics`)
|
||||
} catch (error) {
|
||||
console.error('Bulk update failed:', error.message, query);
|
||||
throw error;
|
||||
|
@ -52,7 +52,7 @@ export class BitcoinRpcService implements OnModuleInit {
|
||||
console.log(`MASTER? ${process.env.MASTER}`)
|
||||
if (process.env.MASTER != 'true') {
|
||||
this.pubsubInstance.addChannel('miningInfo', async (miningInfo: IMiningInfo) => {
|
||||
console.log('PG Sub. new template');
|
||||
//console.log('PG Sub. new template');
|
||||
this.miningInfo = miningInfo;
|
||||
const savedBlockTemplate = await this.rpcBlockService.getSavedBlockTemplate(miningInfo.blocks);
|
||||
this._newBlockTemplate$.next(JSON.parse(savedBlockTemplate.data));
|
||||
|
@ -39,7 +39,9 @@ export class StratumV1JobsService {
|
||||
this.newMiningJob$ = this.bitcoinRpcService.newBlockTemplate$.pipe(
|
||||
map((blockTemplate) => {
|
||||
|
||||
console.log('Updating block template');
|
||||
if (process.env.MASTER == 'true') {
|
||||
console.log('Updating block template');
|
||||
}
|
||||
|
||||
let clearJobs = false;
|
||||
const currentBlockHeight = this.bitcoinRpcService.miningInfo.blocks;
|
||||
@ -128,7 +130,7 @@ export class StratumV1JobsService {
|
||||
jobsDeleted++;
|
||||
}
|
||||
}
|
||||
console.log(`Deleted ${templatesDeleted} templates and ${jobsDeleted} jobs.`)
|
||||
//console.log(`Deleted ${templatesDeleted} templates and ${jobsDeleted} jobs.`)
|
||||
}
|
||||
this.blocks[data.blockData.id] = data;
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user