miner, cmd/geth: settable gas price from flags and console

* --gasprice "<num>" flag
* admin.miner.setGasPrice( <num> )
This commit is contained in:
obscuren
2015-05-09 12:04:00 +02:00
parent cb1fa523e4
commit 13ddf20bd2
3 changed files with 44 additions and 0 deletions

View File

@ -37,6 +37,10 @@ func (self *Miner) Mining() bool {
return self.mining
}
func (m *Miner) SetGasPrice(price *big.Int) {
m.worker.gasPrice = price
}
func (self *Miner) Start(coinbase common.Address) {
self.mining = true
self.worker.coinbase = coinbase