Skip to content

Commit b8b1453

Browse files
committed
Merge branch 'release/0.6.6'
2 parents 70db149 + 1cb1229 commit b8b1453

File tree

8 files changed

+32
-22
lines changed

8 files changed

+32
-22
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Status](http://cpt-obvious.ethercasts.com:8010/buildstatusimage?builder=go-ether
77

88
Ethereum Go Client © 2014 Jeffrey Wilcke.
99

10-
Current state: Proof of Concept 0.6.5.
10+
Current state: Proof of Concept 0.6.6.
1111

1212
For the development package please see the [eth-go package](https://github.com/ethereum/eth-go).
1313

ethereum/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
const (
1515
ClientIdentifier = "Ethereum(G)"
16-
Version = "0.6.5"
16+
Version = "0.6.6"
1717
)
1818

1919
var logger = ethlog.NewLogger("CLI")

mist/assets/qml/views/jeffcoin/jeffcoin.qml

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Rectangle {
4747
});
4848

4949
var blockNumber = eth.block(-1).number;
50-
var messages = filter.messages()
51-
for(var i = messages.length-1; i >= 0; i--) {
52-
var message = messages.get(i)
50+
var msgs = filter.messages()
51+
for(var i = msgs.length-1; i >= 0; i--) {
52+
var message = JSON.parse(msgs.getAsJson(i))
5353

5454
insertTx(message, blockNumber)
5555
}

mist/assets/qml/views/wallet.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Rectangle {
151151
model: ListModel {
152152
id: txModel
153153
Component.onCompleted: {
154-
var filter = ethx.watch({latest: -1, from: eth.key().address});
154+
var filter = ethx.watch({latest: -1, from: eth.key().address});
155155
filter.changed(addTxs)
156156

157157
addTxs(filter.messages())

mist/assets/qml/wallet.qml

+8-7
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ ApplicationWindow {
254254

255255
statusBar: StatusBar {
256256
height: 32
257+
id: statusBar
257258
RowLayout {
258259
Button {
259260
id: miningButton
@@ -294,16 +295,16 @@ ApplicationWindow {
294295
}
295296

296297
ProgressBar {
297-
id: syncProgressIndicator
298-
visible: false
299-
objectName: "syncProgressIndicator"
298+
id: downloadIndicator
299+
value: 0
300+
visible: true
301+
objectName: "downloadIndicator"
300302
y: 3
301-
width: 140
302-
indeterminate: true
303-
anchors.right: peerGroup.left
304-
anchors.rightMargin: 5
303+
x: statusBar.width / 2 - this.width / 2
304+
width: 160
305305
}
306306

307+
307308
RowLayout {
308309
id: peerGroup
309310
y: 7

mist/gui.go

+15-6
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,13 @@ func (gui *Gui) update() {
385385
)
386386

387387
peerUpdateTicker := time.NewTicker(5 * time.Second)
388-
generalUpdateTicker := time.NewTicker(1 * time.Second)
388+
generalUpdateTicker := time.NewTicker(500 * time.Millisecond)
389389
statsUpdateTicker := time.NewTicker(5 * time.Second)
390390

391391
state := gui.eth.StateManager().TransState()
392392

393393
unconfirmedFunds := new(big.Int)
394394
gui.win.Root().Call("setWalletValue", fmt.Sprintf("%v", ethutil.CurrencyToString(state.GetAccount(gui.address()).Balance)))
395-
gui.getObjectByName("syncProgressIndicator").Set("visible", !gui.eth.IsUpToDate())
396395

397396
lastBlockLabel := gui.getObjectByName("lastBlockLabel")
398397
miningLabel := gui.getObjectByName("miningLabel")
@@ -439,9 +438,6 @@ func (gui *Gui) update() {
439438

440439
state.UpdateStateObject(object)
441440
}
442-
case msg := <-chainSyncChan:
443-
sync := msg.Resource.(bool)
444-
gui.win.Root().ObjectByName("syncProgressIndicator").Set("visible", sync)
445441

446442
case <-objectChan:
447443
gui.loadAddressBook()
@@ -464,9 +460,22 @@ func (gui *Gui) update() {
464460
miningLabel.Set("text", "Mining @ "+strconv.FormatInt(pow.GetHashrate(), 10)+"Khash")
465461
}
466462

463+
blockLength := gui.eth.BlockPool().BlocksProcessed
464+
chainLength := gui.eth.BlockPool().ChainLength
465+
466+
var (
467+
pct float64 = 1.0 / float64(chainLength) * float64(blockLength)
468+
dlWidget = gui.win.Root().ObjectByName("downloadIndicator")
469+
)
470+
if pct < 1.0 {
471+
dlWidget.Set("visible", true)
472+
dlWidget.Set("value", pct)
473+
} else {
474+
dlWidget.Set("visible", false)
475+
}
476+
467477
case <-statsUpdateTicker.C:
468478
gui.setStatsPane()
469-
470479
}
471480
}
472481
}()

mist/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
const (
1414
ClientIdentifier = "Mist"
15-
Version = "0.6.5"
15+
Version = "0.6.6"
1616
)
1717

1818
var ethereum *eth.Ethereum

mist/ui_lib.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ func (self *UiLib) NewFilterString(typ string) int {
188188
func (self *UiLib) Messages(id int) *ethutil.List {
189189
filter := self.eth.GetFilter(id)
190190
if filter != nil {
191-
messages := filter.Find()
191+
messages := ethpipe.ToJSMessages(filter.Find())
192192

193-
return ethpipe.ToJSMessages(messages)
193+
return messages
194194
}
195195

196196
return ethutil.EmptyList()

0 commit comments

Comments
 (0)