defer session create

This commit is contained in:
Ben Wilson
2023-08-08 23:39:52 -04:00
parent 2e0b66577d
commit 10f6ffa91f
3 changed files with 12 additions and 10 deletions
-2
View File
@@ -42,8 +42,6 @@ export class StratumV1JobsService {
private readonly bitcoinRpcService: BitcoinRpcService
) {
console.log(this.delay)
this.newMiningJob$ = combineLatest([this.bitcoinRpcService.newBlock$, interval(60000).pipe(delay(this.delay), startWith(-1))]).pipe(
switchMap(([miningInfo, interval]) => {
return from(this.bitcoinRpcService.getBlockTemplate()).pipe(map((blockTemplate) => {