Commit a83db489 authored by Maran's avatar Maran

Fix transaction on new blocks

parent b66a99e3
......@@ -105,6 +105,7 @@ func (miner *Miner) listener() {
if found == false {
log.Println("[MINER] We did not know about this transaction, adding")
miner.txs = append(miner.txs, tx)
miner.block = miner.ethereum.BlockChain().NewBlock(miner.coinbase, miner.txs)
miner.block.SetTransactions(miner.txs)
} else {
log.Println("[MINER] We already had this transaction, ignoring")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment