From 0f3c25b26589f5667b618d6a91b73392d02ccd1e Mon Sep 17 00:00:00 2001
From: obscuren <geffobscura@gmail.com>
Date: Fri, 13 Feb 2015 18:03:16 +0100
Subject: [PATCH] Propagate blocks

---
 cmd/mist/gui.go | 4 +---
 miner/worker.go | 1 +
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/cmd/mist/gui.go b/cmd/mist/gui.go
index 6d179eea10..484cda5ff8 100644
--- a/cmd/mist/gui.go
+++ b/cmd/mist/gui.go
@@ -412,9 +412,7 @@ func (gui *Gui) update() {
 			switch ev := ev.(type) {
 			case core.NewBlockEvent:
 				gui.processBlock(ev.Block, false)
-				if bytes.Compare(ev.Block.Coinbase(), gui.address()) == 0 {
-					gui.setWalletValue(gui.eth.ChainManager().State().GetBalance(gui.address()), nil)
-				}
+				gui.setWalletValue(gui.eth.ChainManager().State().GetBalance(gui.address()), nil)
 
 			case core.TxPreEvent:
 				tx := ev.Tx
diff --git a/miner/worker.go b/miner/worker.go
index cd1c6e28f9..9cb4ab76be 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -131,6 +131,7 @@ func (self *worker) wait() {
 				self.current.block.Header().Nonce = work.Nonce
 
 				self.chain.InsertChain(types.Blocks{self.current.block})
+				self.mux.Post(core.NewMinedBlockEvent{self.current.block})
 			}
 			break
 		}
-- 
GitLab