stratum service should be singleton

This commit is contained in:
Ben Wilson
2023-07-16 17:05:40 -04:00
parent 57b5b1ed53
commit b7d86e7730
3 changed files with 10 additions and 3 deletions
+2
View File
@@ -1,3 +1,4 @@
import { Injectable } from '@nestjs/common';
import * as bitcoinjs from 'bitcoinjs-lib';
import * as merkle from 'merkle-lib';
import * as merkleProof from 'merkle-lib/proof';
@@ -20,6 +21,7 @@ export interface IJobTemplate {
};
}
@Injectable()
export class StratumV1JobsService {
private lastIntervalCount: number;