From e1c665f0171753e1f0e8bc4465bbad7dd850fd9a Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 29 Nov 2025 12:06:14 -0500 Subject: [PATCH] TLS --- src/app/components/splash/splash.component.html | 8 +++----- src/app/components/splash/splash.component.ts | 11 +++++++++-- src/environments/environment.prod.ts | 3 ++- src/environments/environment.ts | 3 ++- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/app/components/splash/splash.component.html b/src/app/components/splash/splash.component.html index 7a55d0c..e1aad91 100644 --- a/src/app/components/splash/splash.component.html +++ b/src/app/components/splash/splash.component.html @@ -33,12 +33,12 @@
stratum+tcp://{{stratumURL}}
+ stratum+tls://{{secureStratumURL}} +
username: <your BTC address>.<worker name>, password: x
NO FEES
- PLUS AFFILIATE REWARDS -
No second best. @@ -133,9 +133,7 @@

Affiliate Program

-

Purchase products through the affiliate links below to enjoy discounts on mining hardware. Every - month, the miner who submits the highest difficulty will be rewarded with 100% of the affiliate - earnings.

+

Purchase products through the affiliate links below to enjoy discounts on mining hardware.

diff --git a/src/app/components/splash/splash.component.ts b/src/app/components/splash/splash.component.ts index 27836b0..c321e0f 100644 --- a/src/app/components/splash/splash.component.ts +++ b/src/app/components/splash/splash.component.ts @@ -27,10 +27,11 @@ export class SplashComponent { public chartOptions: any; public stratumURL = ''; + public secureStratumURL = ''; private info$: Observable; - private networkInfo:any; + private networkInfo: any; constructor(private appService: AppService, private cdr: ChangeDetectorRef) { @@ -42,6 +43,12 @@ export class SplashComponent { this.stratumURL = window.location.hostname + ':3333'; } + if (environment.SECURE_STRATUM_URL.length > 1) { + this.secureStratumURL = environment.SECURE_STRATUM_URL; + } else { + this.secureStratumURL = window.location.hostname + ':4333'; + } + this.blockData$ = this.info$.pipe(map(info => info.blockData)); this.userAgents$ = this.info$.pipe(map(info => info.userAgents)); this.highScores$ = this.info$.pipe(map(info => info.highScores)); @@ -107,7 +114,7 @@ export class SplashComponent { ticks: { color: textColorSecondary, callback: (value: number) => { - return HashSuffixPipe.transform(value) + " - " + AverageTimeToBlockPipe.transform(value, this.networkInfo.difficulty); + return HashSuffixPipe.transform(value) + " - " + AverageTimeToBlockPipe.transform(value, this.networkInfo.difficulty); } }, grid: { diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index b1b7d45..9a390ea 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,5 +1,6 @@ export const environment = { production: true, API_URL: 'https://public-pool.io:40557', - STRATUM_URL: 'public-pool.io:21496' + STRATUM_URL: 'public-pool.io:3333', + SECURE_STRATUM_URL: 'public-pool.io:4333', }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index a033fa0..b78cd4c 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -1,5 +1,6 @@ export const environment = { production: false, API_URL: 'http://localhost:3334', - STRATUM_URL: 'public-pool.io:21496' + STRATUM_URL: 'public-pool.io:3333', + SECURE_STRATUM_URL: 'public-pool.io:4333', };