aboutsummaryrefslogtreecommitdiffstats
path: root/dex/config.go
diff options
context:
space:
mode:
authorBojie Wu <bojie@dexon.org>2018-10-09 13:28:45 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit3e3089a27d917f4bb1327c5e8b5892927d2c7cfb (patch)
tree8eb21426e3d414dc08d92d8767c8b540684fbbc9 /dex/config.go
parent055e84b3b5303b029a375c47143d02a56070aae8 (diff)
downloaddexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.tar.gz
dexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.tar.zst
dexon-3e3089a27d917f4bb1327c5e8b5892927d2c7cfb.zip
dex: implement dexon application interface
Diffstat (limited to 'dex/config.go')
-rw-r--r--dex/config.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/dex/config.go b/dex/config.go
index fa9988bfb..5a43496ab 100644
--- a/dex/config.go
+++ b/dex/config.go
@@ -45,6 +45,10 @@ var DefaultConfig = Config{
Blocks: 20,
Percentile: 60,
},
+
+ GasFloor: 8000000,
+ GasCeil: 8000000,
+ GasLimitTolerance: 1000000,
}
func init() {
@@ -86,6 +90,11 @@ type Config struct {
TrieDirtyCache int
TrieTimeout time.Duration
+ // For calculate gas limit
+ GasFloor uint64
+ GasCeil uint64
+ GasLimitTolerance uint64
+
// Dexcon options
Dexcon dexcon.Config