aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-11-24 21:35:38 +0800
committerGitHub <noreply@github.com>2016-11-24 21:35:38 +0800
commit8e64e4383c3b99d65d4e12c1f1875270a49c6ff6 (patch)
tree2772d451972b8960583f8fda979459e0e0ddcfde
parentf59d8cde263f63f5cb1be377e36436404a28521c (diff)
parent94c0519be27312d90883342cffd668ed23c6df54 (diff)
downloadgo-tangerine-8e64e4383c3b99d65d4e12c1f1875270a49c6ff6.tar
go-tangerine-8e64e4383c3b99d65d4e12c1f1875270a49c6ff6.tar.gz
go-tangerine-8e64e4383c3b99d65d4e12c1f1875270a49c6ff6.tar.bz2
go-tangerine-8e64e4383c3b99d65d4e12c1f1875270a49c6ff6.tar.lz
go-tangerine-8e64e4383c3b99d65d4e12c1f1875270a49c6ff6.tar.xz
go-tangerine-8e64e4383c3b99d65d4e12c1f1875270a49c6ff6.tar.zst
go-tangerine-8e64e4383c3b99d65d4e12c1f1875270a49c6ff6.zip
Merge pull request #3338 from karalabe/miner-driveby-cleanup
miner: remove dead code, add gas price getter
-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)
}