mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-17 05:26:36 +00:00
Mining using a different hash now
This commit is contained in:
parent
7730949221
commit
dbe42ce44e
2 changed files with 8 additions and 6 deletions
|
|
@ -47,9 +47,7 @@ OS X 10.9+:
|
||||||
Build
|
Build
|
||||||
=======
|
=======
|
||||||
|
|
||||||
* `go get -u -t github.com/ethereum/go-ethereum`
|
`go get -u -t github.com/ethereum/go-ethereum`
|
||||||
* `cd $GOPATH/src/github.com/ethereum/go-etherum`
|
|
||||||
* `go build`
|
|
||||||
|
|
||||||
|
|
||||||
Command line options
|
Command line options
|
||||||
|
|
|
||||||
10
ethereum.go
10
ethereum.go
|
|
@ -92,9 +92,13 @@ func main() {
|
||||||
ethereum.BlockManager.ApplyTransactions(block, block.Transactions())
|
ethereum.BlockManager.ApplyTransactions(block, block.Transactions())
|
||||||
// Search the nonce
|
// Search the nonce
|
||||||
block.Nonce = pow.Search(block)
|
block.Nonce = pow.Search(block)
|
||||||
ethereum.BlockManager.ProcessBlock(block)
|
err := ethereum.BlockManager.ProcessBlock(block)
|
||||||
//ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value})
|
if err != nil {
|
||||||
log.Println("\n+++++++ MINED BLK +++++++\n", block.String())
|
log.Println(err)
|
||||||
|
} else {
|
||||||
|
//ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value})
|
||||||
|
log.Println("\n+++++++ MINED BLK +++++++\n", block.String())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue