From 7a98966ba5c5f59e3875bb186715ef02eead32fd Mon Sep 17 00:00:00 2001 From: vertiond Date: Sat, 16 Nov 2024 10:45:51 -0600 Subject: [PATCH] remove Hashalot, CoinMinerz pools -no longer online --- pools/coinminerz.go | 62 --------------------------------------------- pools/hashalot.go | 62 --------------------------------------------- pools/pool.go | 2 -- 3 files changed, 126 deletions(-) delete mode 100644 pools/coinminerz.go delete mode 100644 pools/hashalot.go diff --git a/pools/coinminerz.go b/pools/coinminerz.go deleted file mode 100644 index ed307e84..00000000 --- a/pools/coinminerz.go +++ /dev/null @@ -1,62 +0,0 @@ -package pools - -import ( - "fmt" - "time" - - "github.com/vertcoin-project/one-click-miner-vnext/util" -) - -var _ Pool = &CoinMinerz{} - -type CoinMinerz struct { - Address string - LastFetchedPayout time.Time - LastPayout uint64 -} - -func NewCoinMinerz(addr string) *CoinMinerz { - return &CoinMinerz{Address: addr} -} - -func (p *CoinMinerz) GetPendingPayout() uint64 { - jsonPayload := map[string]interface{}{} - err := util.GetJson(fmt.Sprintf("https://coinminerz.com/api/v1/Vertcoin/statistics?address=%s", p.Address), &jsonPayload) - if err != nil { - return 0 - } - vtc, ok := jsonPayload["payments.next"].(float64) - if !ok { - return 0 - } - vtc *= 100000000 - return uint64(vtc) -} - -func (p *CoinMinerz) GetStratumUrl() string { - return "stratum+tcp://stratum.coinminerz.com:3317" -} - -func (p *CoinMinerz) GetUsername() string { - return p.Address -} - -func (p *CoinMinerz) GetPassword() string { - return "x" -} - -func (p *CoinMinerz) GetID() int { - return 10 -} - -func (p *CoinMinerz) GetName() string { - return "CoinMinerz.com" -} - -func (p *CoinMinerz) GetFee() float64 { - return 1 -} - -func (p *CoinMinerz) OpenBrowserPayoutInfo(addr string) { - util.OpenBrowser(fmt.Sprintf("https://coinminerz.com/miner/Vertcoin/%s", addr)) -} diff --git a/pools/hashalot.go b/pools/hashalot.go deleted file mode 100644 index 8f1dc94d..00000000 --- a/pools/hashalot.go +++ /dev/null @@ -1,62 +0,0 @@ -package pools - -import ( - "fmt" - "time" - - "github.com/vertcoin-project/one-click-miner-vnext/util" -) - -var _ Pool = &Hashalot{} - -type Hashalot struct { - Address string - LastFetchedPayout time.Time - LastPayout uint64 -} - -func NewHashalot(addr string) *Hashalot { - return &Hashalot{Address: addr} -} - -func (p *Hashalot) GetPendingPayout() uint64 { - jsonPayload := map[string]interface{}{} - err := util.GetJson(fmt.Sprintf("http://api.hashalot.net/pools/vtc/miners/%s", p.Address), &jsonPayload) - if err != nil { - return 0 - } - vtc, ok := jsonPayload["pendingBalance"].(float64) - if !ok { - return 0 - } - vtc *= 100000000 - return uint64(vtc) -} - -func (p *Hashalot) GetStratumUrl() string { - return "stratum+tcp://vertcoin.hashalot.net:3950" -} - -func (p *Hashalot) GetUsername() string { - return p.Address -} - -func (p *Hashalot) GetPassword() string { - return "x" -} - -func (p *Hashalot) GetID() int { - return 3 -} - -func (p *Hashalot) GetName() string { - return "Hashalot.net" -} - -func (p *Hashalot) GetFee() float64 { - return 1.0 -} - -func (p *Hashalot) OpenBrowserPayoutInfo(addr string) { - util.OpenBrowser(fmt.Sprintf("https://hashalot.net/vtc/miners/%s", addr)) -} diff --git a/pools/pool.go b/pools/pool.go index 8660c72a..c46c50c9 100644 --- a/pools/pool.go +++ b/pools/pool.go @@ -18,13 +18,11 @@ func GetPools(addr string, testnet bool) []Pool { } } return []Pool{ - NewHashalot(addr), NewZergpool(addr), NewSuprnova(addr), NewP2Pool(addr), Newzpool(addr), NewMiningpoolSweden(addr), - NewCoinMinerz(addr), } }