initial testcode for canonical chain

This commit is contained in:
Maran
2014-03-24 15:04:29 +01:00
parent ec6ec62dd4
commit 6253d10938
5 changed files with 119 additions and 14 deletions

View File

@ -138,6 +138,7 @@ 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)