From 7730949221a95b89282713901bf4db25673cd95c Mon Sep 17 00:00:00 2001
From: obscuren <geffobscura@gmail.com>
Date: Mon, 3 Feb 2014 14:26:52 +0100
Subject: [PATCH] Block processing during mining

---
 ethereum.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ethereum.go b/ethereum.go
index 680e52325..5cbf86665 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -7,7 +7,7 @@ import (
 	"github.com/ethereum/eth-go"
 	"github.com/ethereum/ethchain-go"
 	"github.com/ethereum/ethutil-go"
-	"github.com/ethereum/ethwire-go"
+	_ "github.com/ethereum/ethwire-go"
 	"log"
 	"os"
 	"os/signal"
@@ -92,7 +92,8 @@ func main() {
 				ethereum.BlockManager.ApplyTransactions(block, block.Transactions())
 				// Search the nonce
 				block.Nonce = pow.Search(block)
-				ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value})
+				ethereum.BlockManager.ProcessBlock(block)
+				//ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value})
 				log.Println("\n+++++++ MINED BLK +++++++\n", block.String())
 			}
 		}()
-- 
GitLab