From 0854c7865cd36fc4c10f08d2c0140527dd64938d Mon Sep 17 00:00:00 2001 From: Useless Guru <30080938+UselessGuru@users.noreply.github.com> Date: Sun, 1 Sep 2024 21:15:27 +0200 Subject: [PATCH] Remove MiningPoolHub --- Includes/Include.psm1 | 3 +-- Web/configedit.html | 47 +------------------------------------------ 2 files changed, 2 insertions(+), 48 deletions(-) diff --git a/Includes/Include.psm1 b/Includes/Include.psm1 index d8df5359..c4d9887b 100644 --- a/Includes/Include.psm1 +++ b/Includes/Include.psm1 @@ -1293,7 +1293,7 @@ Function Get-RandomDonationPoolsConfig { $PoolConfig.Region = $Config.PoolsConfig[$_].Region $PoolConfig.WorkerName = "$($Variables.Branding.ProductLabel)-$($Variables.Branding.Version.ToString())-donate$($Config.Donation)" Switch -regex ($_) { - "^MiningDutch$|^MiningPoolHub$|^ProHashing$" { + "^MiningDutch$|^ProHashing$" { If ($Variables.DonationRandom."$($_)UserName") { # not all devs have a known HashCryptos, MiningDutch or ProHashing account $PoolConfig.UserName = $Variables.DonationRandom."$($_)UserName" @@ -1342,7 +1342,6 @@ Function Read-Config { $RandomDonationData = $Variables.DonationData | Get-Random $DefaultConfig.MiningDutchUserName = $RandomDonationData.MiningDutchUserName - $DefaultConfig.MiningPoolHubUserName = $RandomDonationData.MiningPoolHubUserName $DefaultConfig.NiceHashWallet = $RandomDonationData.Wallets.BTC $DefaultConfig.ProHashingUserName = $RandomDonationData.ProHashingUserName $DefaultConfig.Wallets.BTC = $RandomDonationData.Wallets.BTC diff --git a/Web/configedit.html b/Web/configedit.html index c6bfdb53..68f91150 100644 --- a/Web/configedit.html +++ b/Web/configedit.html @@ -36,19 +36,6 @@

Edit configuration


- Mining Pool Hub - - -
- - -
-
- - -
-
- NiceHash @@ -761,18 +748,6 @@

Edit configuration

}); $(document.getElementById('MiningDutchUserName')).trigger('change'); - // MiningPoolHub - document.getElementById('MiningPoolHubUserName').value = config.MiningPoolHubUserName || ''; - document.getElementById('MiningPoolHubAPIKey').value = config.MiningPoolHubAPIKey || ''; - $(document.getElementById('MiningPoolHubUserName')).change(function (event) { - document.getElementById('RegisterMiningPoolHub').hidden = Boolean(document.getElementById('MiningPoolHubUserName').value); - if (document.getElementById('pool-miningpoolhub')) { - if (!Boolean(document.getElementById('MiningPoolHubUserName').value)) document.getElementById('pool-miningpoolhub').checked = false; - document.getElementById('pool-miningpoolhub').disabled = !Boolean(document.getElementById('MiningPoolHubUserName').value) - }; - }); - $(document.getElementById('MiningPoolHubUserName')).trigger('change'); - // NiceHash document.getElementById('NiceHashWallet').value = config.NiceHashWallet || ''; if (config.NiceHashWalletIsInternal) document.getElementById('NiceHashWalletIsInternal').value = 'internal'; @@ -1074,18 +1049,6 @@

Edit configuration

maxlength: 64, pattern: '^[0-9a-f]{64}$' }, - MiningPoolHubUserName: { - required: false, - minlength: 2, - maxlength: 32, - pattern: '^[0-9A-Za-z]{2,32}$' - }, - MiningPoolHubAPIKey: { - required: false, - minlength: 64, - maxlength: 64, - pattern: '^[0-9a-f]{64}$' - }, NiceHashWallet: { required: false, minlength: 26, @@ -1243,17 +1206,11 @@

Edit configuration

pattern: "
Bitcoin address must be between 26 and 35 characters long
and may only contain upper and lower case letters and digits
(case sensitive)" }, MiningDutchserName: { - pattern: "
MiningPoolHub user name must be between 2 and 32 characters long
and may only contain upper and lower case letters and digits
(case sensitive)" + pattern: "
Mining Dutch user name must be between 2 and 32 characters long
and may only contain upper and lower case letters and digits
(case sensitive)" }, MiningDutchAPIKey: { pattern: "
Mining Dutch API key must be exactly 64 characters long
and may only contain lower case letters (a-f) and digits" }, - MiningPoolHubUserName: { - pattern: "
Mining Dutch user name must be between 2 and 32 characters long
and may only contain upper and lower case letters and digits
(case sensitive)" - }, - MiningPoolHubAPIKey: { - pattern: "
MiningPoolHub API key must be exactly 64 characters long
and may only contain lower case letters (a-f) and digits" - }, NiceHashWallet: { pattern: "
NiceHash internal Bitcoin address must be be between 26 and 35 characters long
and may only contain upper and lower case letters and digits
(case sensitive)" }, @@ -1298,8 +1255,6 @@

Edit configuration

}); config.MiningDutchUserName = document.getElementById('MiningDutchUserName').value.toString().trim(); config.MiningDutchAPIKey = document.getElementById('MiningDutchAPIKey').value = document.getElementById('MiningDutchAPIKey').value.toString().trim(); - config.MiningPoolHubUserName = document.getElementById('MiningPoolHubUserName').value.toString().trim(); - config.MiningPoolHubAPIKey = document.getElementById('MiningPoolHubAPIKey').value = document.getElementById('MiningPoolHubAPIKey').value.toString().trim(); config.NiceHashAPIKey = document.getElementById('NiceHashAPIKey').value = document.getElementById('NiceHashAPIKey').value.toString().trim(); config.NiceHashAPISecret = document.getElementById('NiceHashAPISecret').value = document.getElementById('NiceHashAPISecret').value.toString().trim(); config.NiceHashWallet = document.getElementById('NiceHashWallet').value = document.getElementById('NiceHashWallet').value.toString().trim();