diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-09 18:04:00 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-09 18:04:00 +0800 |
commit | 13ddf20bd20707141309fbfa969183a7afbe5a80 (patch) | |
tree | 9993ee85bdc29aba49798e504b7bf6a1aba60294 /miner/miner.go | |
parent | cb1fa523e4930841f4cc92689c850c7831810d03 (diff) | |
download | dexon-13ddf20bd20707141309fbfa969183a7afbe5a80.tar.gz dexon-13ddf20bd20707141309fbfa969183a7afbe5a80.tar.zst dexon-13ddf20bd20707141309fbfa969183a7afbe5a80.zip |
miner, cmd/geth: settable gas price from flags and console
* --gasprice "<num>" flag
* admin.miner.setGasPrice( <num> )
Diffstat (limited to 'miner/miner.go')
-rw-r--r-- | miner/miner.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go index bff0026dc..52b9f2a69 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -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 |