good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 94c0519b authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

miner: remove dead code, add gas price getter

parent c04c8f10
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment