From 94c0519be27312d90883342cffd668ed23c6df54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 24 Nov 2016 15:24:49 +0200 Subject: [PATCH] miner: remove dead code, add gas price getter --- miner/miner.go | 7 ++++--- 1 file 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) }