diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-06 20:28:30 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-06 20:28:30 +0800 |
commit | dbe42ce44e7f931b712fc461bea6f98f870331c5 (patch) | |
tree | b0c959a8229052ce774b2f626b07e0d2bfb900be /ethereum.go | |
parent | 7730949221a95b89282713901bf4db25673cd95c (diff) | |
download | go-tangerine-dbe42ce44e7f931b712fc461bea6f98f870331c5.tar go-tangerine-dbe42ce44e7f931b712fc461bea6f98f870331c5.tar.gz go-tangerine-dbe42ce44e7f931b712fc461bea6f98f870331c5.tar.bz2 go-tangerine-dbe42ce44e7f931b712fc461bea6f98f870331c5.tar.lz go-tangerine-dbe42ce44e7f931b712fc461bea6f98f870331c5.tar.xz go-tangerine-dbe42ce44e7f931b712fc461bea6f98f870331c5.tar.zst go-tangerine-dbe42ce44e7f931b712fc461bea6f98f870331c5.zip |
Mining using a different hash now
Diffstat (limited to 'ethereum.go')
-rw-r--r-- | ethereum.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ethereum.go b/ethereum.go index 5cbf86665..8ba99a388 100644 --- a/ethereum.go +++ b/ethereum.go @@ -92,9 +92,13 @@ func main() { ethereum.BlockManager.ApplyTransactions(block, block.Transactions()) // Search the nonce block.Nonce = pow.Search(block) - ethereum.BlockManager.ProcessBlock(block) - //ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value}) - log.Println("\n+++++++ MINED BLK +++++++\n", block.String()) + err := ethereum.BlockManager.ProcessBlock(block) + if err != nil { + log.Println(err) + } else { + //ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value}) + log.Println("\n+++++++ MINED BLK +++++++\n", block.String()) + } } }() } |