delete old templates and jobs

This commit is contained in:
Benjamin Wilson
2025-02-23 13:17:54 -05:00
parent ddb7a89615
commit 0201703e35
3 changed files with 21 additions and 3 deletions
+2 -1
View File
@@ -20,7 +20,7 @@ export class MiningJob {
public jobTemplateId: string;
public networkDifficulty: number;
public creation: number;
constructor(
configService: ConfigService,
@@ -30,6 +30,7 @@ export class MiningJob {
jobTemplate: IJobTemplate
) {
this.creation = new Date().getTime();
this.jobTemplateId = jobTemplate.blockData.id;
this.coinbaseTransaction = this.createCoinbaseTransaction(payoutInformation, jobTemplate.blockData.coinbasevalue);