aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-06 20:28:30 +0800
committerobscuren <geffobscura@gmail.com>2014-02-06 20:28:30 +0800
commitdbe42ce44e7f931b712fc461bea6f98f870331c5 (patch)
treeb0c959a8229052ce774b2f626b07e0d2bfb900be
parent7730949221a95b89282713901bf4db25673cd95c (diff)
downloaddexon-dbe42ce44e7f931b712fc461bea6f98f870331c5.tar.gz
dexon-dbe42ce44e7f931b712fc461bea6f98f870331c5.tar.zst
dexon-dbe42ce44e7f931b712fc461bea6f98f870331c5.zip
Mining using a different hash now
-rw-r--r--README.md4
-rw-r--r--ethereum.go10
2 files changed, 8 insertions, 6 deletions
diff --git a/README.md b/README.md
index 10527931e..157601b39 100644
--- a/README.md
+++ b/README.md
@@ -47,9 +47,7 @@ OS X 10.9+:
Build
=======
-* `go get -u -t github.com/ethereum/go-ethereum`
-* `cd $GOPATH/src/github.com/ethereum/go-etherum`
-* `go build`
+`go get -u -t github.com/ethereum/go-ethereum`
Command line options
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())
+ }
}
}()
}