aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-09 18:51:40 +0800
committerobscuren <geffobscura@gmail.com>2015-05-09 18:51:40 +0800
commit7eed47fad5ac971895a3853c83a22dff652dac02 (patch)
tree744041666e63075c63326d144df0de5e9def9b5c /miner
parente3a08875f6435b1674e62bd1d923941ec2092b69 (diff)
downloadgo-tangerine-7eed47fad5ac971895a3853c83a22dff652dac02.tar
go-tangerine-7eed47fad5ac971895a3853c83a22dff652dac02.tar.gz
go-tangerine-7eed47fad5ac971895a3853c83a22dff652dac02.tar.bz2
go-tangerine-7eed47fad5ac971895a3853c83a22dff652dac02.tar.lz
go-tangerine-7eed47fad5ac971895a3853c83a22dff652dac02.tar.xz
go-tangerine-7eed47fad5ac971895a3853c83a22dff652dac02.tar.zst
go-tangerine-7eed47fad5ac971895a3853c83a22dff652dac02.zip
miner, tests: fixed block test
Diffstat (limited to 'miner')
-rw-r--r--miner/miner.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go
index 52b9f2a69..d5ea9a146 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -38,6 +38,11 @@ func (self *Miner) Mining() bool {
}
func (m *Miner) SetGasPrice(price *big.Int) {
+ // FIXME block tests set a nil gas price. Quick dirty fix
+ if price == nil {
+ return
+ }
+
m.worker.gasPrice = price
}