github.com/iotexproject/iotex-core@v1.14.1-rc1/gasstation/config.go (about) 1 // Copyright (c) 2019 IoTeX Foundation 2 // This source code is provided 'as is' and no warranties are given as to title or non-infringement, merchantability 3 // or fitness for purpose and, to the extent permitted by law, all liability for your use of the code is disclaimed. 4 // This source code is governed by Apache License 2.0 that can be found in the LICENSE file. 5 6 package gasstation 7 8 import "github.com/iotexproject/iotex-core/pkg/unit" 9 10 // Config is the gas station config 11 type Config struct { 12 SuggestBlockWindow int `yaml:"suggestBlockWindow"` 13 DefaultGas uint64 `yaml:"defaultGas"` 14 Percentile int `yaml:"Percentile"` 15 } 16 17 // DefaultConfig is the default config 18 var DefaultConfig = Config{ 19 SuggestBlockWindow: 20, 20 DefaultGas: uint64(unit.Qev), 21 Percentile: 60, 22 }