aboutsummaryrefslogtreecommitdiffstats
path: root/miner/miner.go
diff options
context:
space:
mode:
Diffstat (limited to 'miner/miner.go')
-rw-r--r--miner/miner.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go
index bff0026dc..d5ea9a146 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -37,6 +37,15 @@ func (self *Miner) Mining() bool {
return self.mining
}
+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
+}
+
func (self *Miner) Start(coinbase common.Address) {
self.mining = true
self.worker.coinbase = coinbase