aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-22 02:23:09 +0800
committerobscuren <geffobscura@gmail.com>2014-08-22 02:23:09 +0800
commit7855a233a7ed4968d93fc76a74501c931574f6eb (patch)
tree84819a27c1950dcd88171de81146316ebf4711bc
parented73fc0be3abbaad31302be67ed4137140883de4 (diff)
parentb8495471161a20d325671b56dd6f3243c8f2a075 (diff)
downloadgo-tangerine-0.6.4.tar.gz
go-tangerine-0.6.4.tar.zst
go-tangerine-0.6.4.zip
Merge branch 'release/0.6.4'v0.6.4
-rw-r--r--README.md2
-rw-r--r--ethereal/assets/qml/wallet.qml24
-rw-r--r--ethereal/gui.go16
-rw-r--r--ethereal/main.go2
-rw-r--r--ethereum/main.go2
5 files changed, 39 insertions, 7 deletions
diff --git a/README.md b/README.md
index da75e4d9e..2d4b128fc 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ Status](http://cpt-obvious.ethercasts.com:8010/buildstatusimage?builder=go-ether
Ethereum Go Client © 2014 Jeffrey Wilcke.
-Current state: Proof of Concept 0.6.3.
+Current state: Proof of Concept 0.6.4.
For the development package please see the [eth-go package](https://github.com/ethereum/eth-go).
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml
index 80481f1bc..90cc42a1f 100644
--- a/ethereal/assets/qml/wallet.qml
+++ b/ethereal/assets/qml/wallet.qml
@@ -157,6 +157,21 @@ ApplicationWindow {
})
}
}
+
+ MenuSeparator {}
+
+ MenuItem {
+ id: miningSpeed
+ text: "Mining: Turbo"
+ onTriggered: {
+ gui.toggleTurboMining()
+ if(text == "Mining: Turbo") {
+ text = "Mining: Normal";
+ } else {
+ text = "Mining: Turbo";
+ }
+ }
+ }
}
Menu {
@@ -220,6 +235,15 @@ ApplicationWindow {
Label {
y: 6
+ objectName: "miningLabel"
+ visible: true
+ font.pixelSize: 10
+ anchors.right: lastBlockLabel.left
+ anchors.rightMargin: 5
+ }
+
+ Label {
+ y: 6
id: lastBlockLabel
objectName: "lastBlockLabel"
visible: true
diff --git a/ethereal/gui.go b/ethereal/gui.go
index f450acde6..6d16ec484 100644
--- a/ethereal/gui.go
+++ b/ethereal/gui.go
@@ -150,10 +150,14 @@ func (gui *Gui) ToggleMining() {
if gui.eth.Mining {
utils.StopMining(gui.eth)
txt = "Start mining"
+
+ gui.getObjectByName("miningLabel").Set("visible", false)
} else {
utils.StartMining(gui.eth)
gui.miner = utils.GetMiner()
txt = "Stop mining"
+
+ gui.getObjectByName("miningLabel").Set("visible", true)
}
gui.win.Root().Set("miningButtonText", txt)
@@ -415,6 +419,7 @@ func (gui *Gui) update() {
gui.getObjectByName("syncProgressIndicator").Set("visible", !gui.eth.IsUpToDate())
lastBlockLabel := gui.getObjectByName("lastBlockLabel")
+ miningLabel := gui.getObjectByName("miningLabel")
go func() {
for {
@@ -476,13 +481,12 @@ func (gui *Gui) update() {
}
case <-generalUpdateTicker.C:
statusText := "#" + gui.eth.BlockChain().CurrentBlock.Number.String()
+ lastBlockLabel.Set("text", statusText)
+
if gui.miner != nil {
pow := gui.miner.GetPow()
- if pow.GetHashrate() != 0 {
- statusText = "Mining @ " + strconv.FormatInt(pow.GetHashrate(), 10) + "Khash - " + statusText
- }
+ miningLabel.Set("text", "Mining @ "+strconv.FormatInt(pow.GetHashrate(), 10)+"Khash")
}
- lastBlockLabel.Set("text", statusText)
}
}
}()
@@ -548,6 +552,10 @@ func (gui *Gui) GetCustomIdentifier() string {
return gui.clientIdentity.GetCustomIdentifier()
}
+func (gui *Gui) ToggleTurboMining() {
+ gui.miner.ToggleTurbo()
+}
+
// functions that allow Gui to implement interface ethlog.LogSystem
func (gui *Gui) SetLogLevel(level ethlog.LogLevel) {
gui.logLevel = level
diff --git a/ethereal/main.go b/ethereal/main.go
index 4101efbca..4cb8630e8 100644
--- a/ethereal/main.go
+++ b/ethereal/main.go
@@ -12,7 +12,7 @@ import (
const (
ClientIdentifier = "Ethereal"
- Version = "0.6.3"
+ Version = "0.6.4"
)
var ethereum *eth.Ethereum
diff --git a/ethereum/main.go b/ethereum/main.go
index a8e60dec7..b7c8ea1e7 100644
--- a/ethereum/main.go
+++ b/ethereum/main.go
@@ -13,7 +13,7 @@ import (
const (
ClientIdentifier = "Ethereum(G)"
- Version = "0.6.3"
+ Version = "0.6.4"
)
var logger = ethlog.NewLogger("CLI")