Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Drop BHD
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Jun 18, 2023
1 parent e70c367 commit 8a38d76
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 23 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.7.0 / 2023-06-18
==================

* Drop BHD as it transitions to CHIA plots.

2.6.0 / 2022-02-05
==================

Expand Down
12 changes: 0 additions & 12 deletions lib/coin-util.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
const coinUtil = {
blockTime(coin) {
switch (coin) {
case 'BHD':
return 180;
case 'LHD':
case 'HDD':
case 'XHD':
return 300;
default:
return 240;
}
},
blockZeroBaseTarget(coin) {
switch (coin) {
case 'BHD':
return 24433591728;
case 'LHD':
case 'HDD':
case 'XHD':
return 14660155037;
default:
return 18325193796;
}
Expand Down
3 changes: 1 addition & 2 deletions lib/first-run-wizard/first-run-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class FirstRunWizard {
choices: this.coins.map(coin => ({
title: coin,
value: coin,
selected: coin === 'BHD',
selected: coin === 'SIGNA',
})),
min: 1,
}]);
Expand Down Expand Up @@ -250,7 +250,6 @@ class FirstRunWizard {

get coinColors() {
return {
BHD: '#f49d11',
SIGNA: '#0099ff',
};
}
Expand Down
7 changes: 1 addition & 6 deletions lib/services/profitability-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ class ProfitabilityService {

getBlockReward(miningInfo, coin) {
switch (coin) {
case 'bhd':return this.useEcoBlockRewards ? 4.5 : 14.25;
case 'burst':
case 'signa':
const month = Math.floor(miningInfo.height / 10800);
return Math.floor(10000 * Math.pow(95, month) / Math.pow(100, month));
case 'lhd':return this.useEcoBlockRewards ? 10 : 92;
case 'hdd':return this.useEcoBlockRewards ? 110 : 2200;
case 'xhd': return this.useEcoBlockRewards ? 1500 : 150000;
}

return 0;
Expand All @@ -29,8 +25,7 @@ class ProfitabilityService {

async updateRates() {
try {
const rates = await this.coinGecko.getRates(['bitcoin-hd', 'signum']);
this.rates.bhd = rates['bitcoin-hd'].usd;
const rates = await this.coinGecko.getRates(['signum']);
this.rates.signa = rates.signum.usd;
this.rates.burst = this.rates.signa;
} catch (err) {}
Expand Down
2 changes: 1 addition & 1 deletion lib/upstream/foxypool.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const SocketIo = require('./socketio');
class FoxyPool extends SocketIo {
async init() {
if (!this.upstreamConfig.url) {
this.upstreamConfig.url = 'http://miner.bhd.foxypool.io/mining';
this.upstreamConfig.url = 'http://miner.signa.foxypool.io/mining';
}
if (this.upstreamConfig.url.endsWith('/')) {
this.upstreamConfig.url = this.upstreamConfig.url.slice(0, -1);
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "foxy-miner",
"version": "2.6.0",
"version": "2.7.0",
"description": "A scavenger / conqueror wrapper for collision free multi mining.",
"keywords": [
"bhd",
"burst",
"signa",
"poc",
Expand Down

0 comments on commit 8a38d76

Please sign in to comment.