aboutsummaryrefslogtreecommitdiffstats
path: root/eth/api.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-05-17 03:07:27 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-05-17 03:07:27 +0800
commita2f23ca9b181fa4409fdee3076316f3127038b9b (patch)
tree4aff39e2ad7ff31562468830b7f3435188e1672c /eth/api.go
parente20158176d2061ff95cdf022aa7113aa7c47a98e (diff)
downloaddexon-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar
dexon-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.gz
dexon-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.bz2
dexon-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.lz
dexon-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.xz
dexon-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.zst
dexon-a2f23ca9b181fa4409fdee3076316f3127038b9b.zip
cmd, core, eth, miner: remove txpool gas price limits (#14442)
Diffstat (limited to 'eth/api.go')
-rw-r--r--eth/api.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/eth/api.go b/eth/api.go
index 61f7bdd92..88b3dbbf9 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -153,6 +153,8 @@ func (api *PrivateMinerAPI) Start(threads *int) error {
}
// Start the miner and return
if !api.e.IsMining() {
+ // Propagate the initial price point to the transaction pool
+ api.e.txPool.SetGasPrice(api.e.gasPrice)
return api.e.StartMining(true)
}
return nil
@@ -180,7 +182,7 @@ func (api *PrivateMinerAPI) SetExtra(extra string) (bool, error) {
// SetGasPrice sets the minimum accepted gas price for the miner.
func (api *PrivateMinerAPI) SetGasPrice(gasPrice hexutil.Big) bool {
- api.e.Miner().SetGasPrice((*big.Int)(&gasPrice))
+ api.e.txPool.SetGasPrice((*big.Int)(&gasPrice))
return true
}