Skip to content

Commit 8e64e43

Browse files
authored
Merge pull request #3338 from karalabe/miner-driveby-cleanup
miner: remove dead code, add gas price getter
2 parents f59d8cd + 94c0519 commit 8e64e43

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

miner/miner.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ type Miner struct {
5050

5151
worker *worker
5252

53-
MinAcceptedGasPrice *big.Int
54-
5553
threads int
5654
coinbase common.Address
5755
mining int32
@@ -107,12 +105,15 @@ out:
107105
}
108106
}
109107

108+
func (m *Miner) GasPrice() *big.Int {
109+
return new(big.Int).Set(m.worker.gasPrice)
110+
}
111+
110112
func (m *Miner) SetGasPrice(price *big.Int) {
111113
// FIXME block tests set a nil gas price. Quick dirty fix
112114
if price == nil {
113115
return
114116
}
115-
116117
m.worker.setGasPrice(price)
117118
}
118119

0 commit comments

Comments
 (0)