We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f59d8cd + 94c0519 commit 8e64e43Copy full SHA for 8e64e43
miner/miner.go
@@ -50,8 +50,6 @@ type Miner struct {
50
51
worker *worker
52
53
- MinAcceptedGasPrice *big.Int
54
-
55
threads int
56
coinbase common.Address
57
mining int32
@@ -107,12 +105,15 @@ out:
107
105
}
108
106
109
+func (m *Miner) GasPrice() *big.Int {
+ return new(big.Int).Set(m.worker.gasPrice)
110
+}
111
+
112
func (m *Miner) SetGasPrice(price *big.Int) {
113
// FIXME block tests set a nil gas price. Quick dirty fix
114
if price == nil {
115
return
116
117
m.worker.setGasPrice(price)
118
119
0 commit comments