Small tweaks

This commit is contained in:
Maran
2014-04-01 15:54:29 +02:00
parent 3558dd5ed4
commit 782910eaa7
3 changed files with 3 additions and 11 deletions

View File

@ -130,7 +130,6 @@ func (miner *Miner) listener() {
err := miner.ethereum.StateManager().ProcessBlock(miner.block, true)
if err != nil {
log.Println("Error result from process block:", err)
log.Println(miner.block)
} else {
if !miner.ethereum.StateManager().Pow.Verify(miner.block.HashNoNonce(), miner.block.Difficulty, miner.block.Nonce) {
@ -138,7 +137,6 @@ func (miner *Miner) listener() {
}
miner.ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{miner.block.Value().Val})
log.Printf("[MINER] 🔨 Mined block %x\n", miner.block.Hash())
log.Println(miner.block)
miner.txs = []*ethchain.Transaction{} // Move this somewhere neat
miner.block = miner.ethereum.BlockChain().NewBlock(miner.coinbase, miner.txs)