aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.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/backend.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/backend.go')
-rw-r--r--eth/backend.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go
index f864b1d88..7c63fa51d 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -20,6 +20,7 @@ package eth
import (
"errors"
"fmt"
+ "math/big"
"runtime"
"sync"
"sync/atomic"
@@ -76,6 +77,7 @@ type Ethereum struct {
ApiBackend *EthApiBackend
miner *miner.Miner
+ gasPrice *big.Int
Mining bool
MinerThreads int
etherbase common.Address
@@ -167,7 +169,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
}
eth.miner = miner.New(eth, eth.chainConfig, eth.EventMux(), eth.engine)
- eth.miner.SetGasPrice(config.GasPrice)
+ eth.gasPrice = config.GasPrice
eth.miner.SetExtra(makeExtraData(config.ExtraData))
eth.ApiBackend = &EthApiBackend{eth, nil}