miner: remove dead code, add gas price getter

上级 c04c8f10
......@@ -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)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册