aboutsummaryrefslogtreecommitdiffstats
path: root/dex/config.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-13 16:21:51 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:52 +0800
commit928af1509f29af548f5d7c32cdc028b0569565c1 (patch)
tree8e61305cdcda873ac9eeadd1efb9de9564900fe7 /dex/config.go
parent55a731025c1318ec6f045222eaaf3aa20b2cd0d9 (diff)
downloaddexon-928af1509f29af548f5d7c32cdc028b0569565c1.tar
dexon-928af1509f29af548f5d7c32cdc028b0569565c1.tar.gz
dexon-928af1509f29af548f5d7c32cdc028b0569565c1.tar.bz2
dexon-928af1509f29af548f5d7c32cdc028b0569565c1.tar.lz
dexon-928af1509f29af548f5d7c32cdc028b0569565c1.tar.xz
dexon-928af1509f29af548f5d7c32cdc028b0569565c1.tar.zst
dexon-928af1509f29af548f5d7c32cdc028b0569565c1.zip
dex: bug fix to allow running geth without crashing
Diffstat (limited to 'dex/config.go')
-rw-r--r--dex/config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/dex/config.go b/dex/config.go
index 7e33ae05f..a3b682de0 100644
--- a/dex/config.go
+++ b/dex/config.go
@@ -29,6 +29,7 @@ import (
"github.com/dexon-foundation/dexon/core"
"github.com/dexon-foundation/dexon/dex/gasprice"
"github.com/dexon-foundation/dexon/eth/downloader"
+ "github.com/dexon-foundation/dexon/params"
)
// DefaultConfig contains default settings for use on the Ethereum main net.
@@ -47,7 +48,7 @@ var DefaultConfig = Config{
Blocks: 20,
Percentile: 60,
},
-
+ DefaultGasPrice: big.NewInt(params.GWei),
GasFloor: 8000000,
GasCeil: 8000000,
GasLimitTolerance: 1000000,
@@ -96,6 +97,7 @@ type Config struct {
TrieTimeout time.Duration
// For calculate gas limit
+ DefaultGasPrice *big.Int
GasFloor uint64
GasCeil uint64
GasLimitTolerance uint64