good morning!!!!

Skip to content
Snippets Groups Projects
Commit 8c2940a9 authored by Alexandre Van de Sande's avatar Alexandre Van de Sande
Browse files

updating to new network health page

parent 21c373b5
No related branches found
No related tags found
No related merge requests found
...@@ -759,7 +759,7 @@ ApplicationWindow { ...@@ -759,7 +759,7 @@ ApplicationWindow {
Rectangle { Rectangle {
height: 55 height: 55
color: "transparent" color: "transparent"
visible:false visible: true
Text { Text {
text: "DEBUG" text: "DEBUG"
font.family: sourceSansPro.name font.family: sourceSansPro.name
......
...@@ -92,15 +92,16 @@ Rectangle { ...@@ -92,15 +92,16 @@ Rectangle {
// Check if it's mining and set it accordingly // Check if it's mining and set it accordingly
if (miningSliderValue > 0 && !eth.miner().mining()) { if (miningSliderValue > 0 && !eth.miner().mining()) {
// If the
eth.setGasPrice("10000000000000"); eth.setGasPrice("10000000000000");
eth.miner().start(); eth.miner().start();
} else if (miningSliderValue == 0 && eth.miner().mining()) { } else if (miningSliderValue == 0 && eth.miner().mining()) {
eth.miner().stop(); eth.miner().stop();
} else if (eth.miner().mining()) { } else if (eth.miner().mining()) {
webview.runJavaScript('console.log(localStorage.timeSpent); Miner.timeSpentMining++; Miner.hashrate = ' + eth.miner().hashRate() ); webview.runJavaScript('var miningData = MiningData.findOne(); MiningData.update(miningData._id, {$inc: {totalTimeSpent: 1}}); Miner.hashrate = ' + eth.miner().hashRate() );
//var miningData = MiningData.findOne(); MiningData.update(miningData._id, {$inc: {totalTimeSpent: 1}});
} else if (miningSliderValue == "undefined") { } else if (miningSliderValue == "undefined") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment