aboutsummaryrefslogtreecommitdiffstats
path: root/ethminer/miner.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-21 06:17:50 +0800
committerobscuren <geffobscura@gmail.com>2014-05-21 06:17:50 +0800
commit5ceb1620e93e1999c6f72e6164c7c65af63244ec (patch)
treee3185f8202dd3f3ebd065be5a1ea7e7ba08e6055 /ethminer/miner.go
parente8b45852952138ac24dada1a70480d31d0886c27 (diff)
downloadgo-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar
go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.gz
go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.bz2
go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.lz
go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.xz
go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.zst
go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.zip
Fixed couple issues
* (imp) Lock / RLock tries * (fix) stack
Diffstat (limited to 'ethminer/miner.go')
-rw-r--r--ethminer/miner.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go
index 294bc7b3d..26b28d82f 100644
--- a/ethminer/miner.go
+++ b/ethminer/miner.go
@@ -102,6 +102,7 @@ func (miner *Miner) listener() {
}
if found == false {
+ miner.block.Undo()
//log.Infoln("[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)