Update balance label when mining

This commit is contained in:
obscuren
2015-02-13 18:15:23 +01:00
parent 0f3c25b265
commit ce239333d5
4 changed files with 18 additions and 2 deletions

View File

@ -127,7 +127,8 @@ out:
func (self *worker) wait() {
for {
for work := range self.recv {
if self.current.block.Number().Uint64() == work.Number {
block := self.current.block
if block.Number().Uint64() == work.Number && block.Nonce() == nil {
self.current.block.Header().Nonce = work.Nonce
self.chain.InsertChain(types.Blocks{self.current.block})