OSDN Git Service

init delete the pow related (#55)
[bytom/vapor.git] / config / config.go
index 3b4f112..1941809 100644 (file)
@@ -26,7 +26,6 @@ type Config struct {
        Wallet    *WalletConfig    `mapstructure:"wallet"`
        Auth      *RPCAuthConfig   `mapstructure:"auth"`
        Web       *WebConfig       `mapstructure:"web"`
-       Simd      *SimdConfig      `mapstructure:"simd"`
        Websocket *WebsocketConfig `mapstructure:"ws"`
 }
 
@@ -38,7 +37,6 @@ func DefaultConfig() *Config {
                Wallet:     DefaultWalletConfig(),
                Auth:       DefaultRPCAuthConfig(),
                Web:        DefaultWebConfig(),
-               Simd:       DefaultSimdConfig(),
                Websocket:  DefaultWebsocketConfig(),
        }
 }
@@ -191,10 +189,6 @@ type WebConfig struct {
        Closed bool `mapstructure:"closed"`
 }
 
-type SimdConfig struct {
-       Enable bool `mapstructure:"enable"`
-}
-
 type WebsocketConfig struct {
        MaxNumWebsockets     int `mapstructure:"max_num_websockets"`
        MaxNumConcurrentReqs int `mapstructure:"max_num_concurrent_reqs"`
@@ -224,13 +218,6 @@ func DefaultWalletConfig() *WalletConfig {
        }
 }
 
-// Default configurable web parameters.
-func DefaultSimdConfig() *SimdConfig {
-       return &SimdConfig{
-               Enable: false,
-       }
-}
-
 func DefaultWebsocketConfig() *WebsocketConfig {
        return &WebsocketConfig{
                MaxNumWebsockets:     25,