aboutsummaryrefslogtreecommitdiffstats
path: root/ethminer
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-04-09 21:48:17 +0800
committerMaran <maran.hidskes@gmail.com>2014-04-09 21:48:17 +0800
commita83db489dfddb16786b1de3d28aee4a4af9e12d5 (patch)
tree3a6b13612c9bc4aae65df58d5ed2ccf04633dbca /ethminer
parentb66a99e32dd51ddd66a81141a9a37f93144935bd (diff)
downloadgo-tangerine-a83db489dfddb16786b1de3d28aee4a4af9e12d5.tar.gz
go-tangerine-a83db489dfddb16786b1de3d28aee4a4af9e12d5.tar.zst
go-tangerine-a83db489dfddb16786b1de3d28aee4a4af9e12d5.zip
Fix transaction on new blocks
Diffstat (limited to 'ethminer')
-rw-r--r--ethminer/miner.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go
index 60af3ab31..d84977342 100644
--- a/ethminer/miner.go
+++ b/ethminer/miner.go
@@ -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")