diff options
author | Bojie Wu <bojie@dexon.org> | 2018-10-09 13:28:45 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:38 +0800 |
commit | 2b5dfb450ce6bcbbf85d46a8c87d8e20683c646d (patch) | |
tree | d33825b6613a05f5d47f7cded5d3838c68cfd178 /dex/config.go | |
parent | 5bda6cec66d7b03b23963f3d44514ac1e98da2c4 (diff) | |
download | go-tangerine-2b5dfb450ce6bcbbf85d46a8c87d8e20683c646d.tar go-tangerine-2b5dfb450ce6bcbbf85d46a8c87d8e20683c646d.tar.gz go-tangerine-2b5dfb450ce6bcbbf85d46a8c87d8e20683c646d.tar.bz2 go-tangerine-2b5dfb450ce6bcbbf85d46a8c87d8e20683c646d.tar.lz go-tangerine-2b5dfb450ce6bcbbf85d46a8c87d8e20683c646d.tar.xz go-tangerine-2b5dfb450ce6bcbbf85d46a8c87d8e20683c646d.tar.zst go-tangerine-2b5dfb450ce6bcbbf85d46a8c87d8e20683c646d.zip |
dex: implement dexon application interface
Diffstat (limited to 'dex/config.go')
-rw-r--r-- | dex/config.go | 9 |
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 |