Skip to content

Commit

Permalink
Ticker and miner naming updates
Browse files Browse the repository at this point in the history
  • Loading branch information
donovansolms committed Apr 24, 2019
1 parent a9492b3 commit b64f034
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/gui/miner/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
// CreateMiner creates a supported miner from the given configuration
func CreateMiner(config Config) (Miner, error) {
switch strings.ToLower(config.Type) {
case "xtl-stak":
case "xtc-stak":
return NewXmrStak(config)
case "xtlrig":
case "xtcrig":
return NewXmrig(config)
}

Expand Down
2 changes: 1 addition & 1 deletion src/gui/miner/spec.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package miner

// SupportedMiners contains a list of the currently supported miners
var SupportedMiners = []string{"xtl-stak", "xtlrig"}
var SupportedMiners = []string{"xtc-stak", "xtcrig"}

// Config holds miner specific configuration information
type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion src/gui/miner/xmr_stak.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (miner *XmrStak) buildPoolConfig(
[
{"pool_address" : "` + poolEndpoint + `", "wallet_address" : "` + walletAddress + `", "rig_id" : "", "pool_password" : "Torque GUI Miner", "use_nicehash" : false, "use_tls" : false, "tls_fingerprint" : "", "pool_weight" : 1 },
],
"currency" : "torque",
"currency" : "stellite",
`
}

Expand Down
2 changes: 1 addition & 1 deletion src/gui/miner/xmrig.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func (miner *Xmrig) createGPUConfig(
Pass: "Torque GUI Miner",
Keepalive: true,
Nicehash: false,
Variant: "xtc",
Variant: "xtl",
},
},
API: XmrigAPIConfig{
Expand Down
4 changes: 2 additions & 2 deletions src/resources/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
Ticker
</td>
<td>
XTL
XTC
</td>
</tr>
<tr>
Expand Down Expand Up @@ -220,7 +220,7 @@ <h3>Contact</h3>
<div class="payment">
<div class="estimate">
<div class="detail">you are mining an estimated</div>
<div id="miner_payout">0.00 XTL</div>
<div id="miner_payout">0.00 XTC</div>
<div class="detail">per day</div>
</div>
<div class="address">
Expand Down
10 changes: 5 additions & 5 deletions src/resources/app/static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ let app = {
$('#trading_crex_volume').html(parsed.volume_crex + ' BTC');
$('#record_volume').html(parsed.records.volume + ' BTC');
$('#record_price').html(parsed.records.price + ' BTC');
$('#miner_payout').html(parsed.xtl_per_day + ' XTL');
$('#miner_payout').html(parsed.xtl_per_day + ' XTC');
$('#pool').html(parsed.pool_html);
break;
case "miner_stats":
Expand Down Expand Up @@ -212,16 +212,16 @@ let app = {
$('#max_threads_multiple').hide();
} else $('#max_threads_multiple').show();

if (parsed.type == 'xtlrig') {
if (parsed.type == 'xtcrig') {
$('.xmrig-extra').show();
} else $('.xmrig-extra').hide();

// For xmrig's GPU only setup we don't show the CPU tuning options
if (parsed.type != "xtlrig-gpu") {
if (parsed.type != "xtcrig-gpu") {
// TODO: Do this in a better way, i.e - not as text
var threadOptions = "<select>";
var startThreadCount = 1;
if (parsed.type == 'xtl-stak') {
if (parsed.type == 'xtc-stak') {
startThreadCount = 0;
}
for (var i = startThreadCount; i <= parsed.max_threads; i++) {
Expand Down Expand Up @@ -261,7 +261,7 @@ let app = {
$('#miner_difficulty').html('0');
$('#miner_shares').html('0');
$('#miner_shares_bad').html('0');
$('#miner_payout').html('0.00 XTL');
$('#miner_payout').html('0.00 XTC');
},
setupChart: function() {
var chart = $("#hashrate_chart");
Expand Down

0 comments on commit b64f034

Please sign in to comment.