aboutsummaryrefslogtreecommitdiffstats
path: root/miner/miner.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-11-24 21:24:49 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-11-24 21:24:49 +0800
commit94c0519be27312d90883342cffd668ed23c6df54 (patch)
treed46c046fbe858feec4faf12891674b8dd33f1ba3 /miner/miner.go
parentc04c8f10f04a41e762589358418c65fd99891bb4 (diff)
downloaddexon-94c0519be27312d90883342cffd668ed23c6df54.tar
dexon-94c0519be27312d90883342cffd668ed23c6df54.tar.gz
dexon-94c0519be27312d90883342cffd668ed23c6df54.tar.bz2
dexon-94c0519be27312d90883342cffd668ed23c6df54.tar.lz
dexon-94c0519be27312d90883342cffd668ed23c6df54.tar.xz
dexon-94c0519be27312d90883342cffd668ed23c6df54.tar.zst
dexon-94c0519be27312d90883342cffd668ed23c6df54.zip
miner: remove dead code, add gas price getter
Diffstat (limited to 'miner/miner.go')
-rw-r--r--miner/miner.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/miner/miner.go b/miner/miner.go
index 76dbb8380..c85a1cd8e 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -50,8 +50,6 @@ type Miner struct {
worker *worker
- MinAcceptedGasPrice *big.Int
-
threads int
coinbase common.Address
mining int32
@@ -107,12 +105,15 @@ out:
}
}
+func (m *Miner) GasPrice() *big.Int {
+ return new(big.Int).Set(m.worker.gasPrice)
+}
+
func (m *Miner) SetGasPrice(price *big.Int) {
// FIXME block tests set a nil gas price. Quick dirty fix
if price == nil {
return
}
-
m.worker.setGasPrice(price)
}