diff options
author | Sonic <sonic@dexon.org> | 2019-03-27 20:02:55 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:58 +0800 |
commit | 91981becf98b988470810aa1c26d86de2d294e29 (patch) | |
tree | aeb9b175a5cce93e6bbe8870028e151096bc6759 /dex/config.go | |
parent | a29eba604b1a58ea414a6570223dedb0482cefaf (diff) | |
download | dexon-91981becf98b988470810aa1c26d86de2d294e29.tar.gz dexon-91981becf98b988470810aa1c26d86de2d294e29.tar.zst dexon-91981becf98b988470810aa1c26d86de2d294e29.zip |
backport from v1.8.23 (#304)
* dex: backport f6193ad
* dex/downloader: backport accc0fa accc0fab 174083c3
* dex: backport 434dd5b
* dex: backport 42a914a 0983d02
* dex: backport 48b70ec 31b3334 and some modification
* dex/downloader: backport 5f251a6
* dex/downloader: backport 81c3dc7
* dex, dex/downloader: fix typos
Diffstat (limited to 'dex/config.go')
-rw-r--r-- | dex/config.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dex/config.go b/dex/config.go index d218b35e2..ac3e89969 100644 --- a/dex/config.go +++ b/dex/config.go @@ -25,6 +25,7 @@ import ( "runtime" "time" + "github.com/dexon-foundation/dexon/common" "github.com/dexon-foundation/dexon/core" "github.com/dexon-foundation/dexon/dex/downloader" "github.com/dexon-foundation/dexon/eth/gasprice" @@ -81,6 +82,9 @@ type Config struct { SyncMode downloader.SyncMode NoPruning bool + // Whitelist of required block number -> hash values to accept + Whitelist map[uint64]common.Hash `toml:"-"` + // Light client options LightServ int `toml:",omitempty"` // Maximum percentage of time allowed for serving LES requests LightPeers int `toml:",omitempty"` // Maximum number of LES client peers @@ -112,7 +116,7 @@ type Config struct { // Miscellaneous options DocRoot string `toml:"-"` - // Type of the EWASM interpreter ("" for detault) + // Type of the EWASM interpreter ("" for default) EWASMInterpreter string // Type of the EVM interpreter ("" for default) |