good morning!!!!

Skip to content
Snippets Groups Projects
Commit 8e64e438 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub
Browse files

Merge pull request #3338 from karalabe/miner-driveby-cleanup

miner: remove dead code, add gas price getter
parents f59d8cde 94c0519b
No related branches found
No related tags found
No related merge requests found
...@@ -50,8 +50,6 @@ type Miner struct { ...@@ -50,8 +50,6 @@ type Miner struct {
worker *worker worker *worker
MinAcceptedGasPrice *big.Int
threads int threads int
coinbase common.Address coinbase common.Address
mining int32 mining int32
...@@ -107,12 +105,15 @@ out: ...@@ -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) { func (m *Miner) SetGasPrice(price *big.Int) {
// FIXME block tests set a nil gas price. Quick dirty fix // FIXME block tests set a nil gas price. Quick dirty fix
if price == nil { if price == nil {
return return
} }
m.worker.setGasPrice(price) m.worker.setGasPrice(price)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment