OSDN Git Service

remove unused config simd (#2037)
authorboomyl <563807243@qq.com>
Thu, 15 Jul 2021 08:15:00 +0000 (16:15 +0800)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 08:15:00 +0000 (16:15 +0800)
Makefile
README.md
cmd/bytomd/commands/run_node.go
config/config.go

index b9e8e9d..9607153 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,10 +36,6 @@ bytomd:
        @echo "Building bytomd to cmd/bytomd/bytomd"
        @go build $(BUILD_FLAGS) -o cmd/bytomd/bytomd cmd/bytomd/main.go
 
-bytomd-simd:
-       @echo "Building SIMD version bytomd to cmd/bytomd/bytomd"
-       @go build -tags="simd" $(BUILD_FLAGS) -o cmd/bytomd/bytomd cmd/bytomd/main.go
-
 bytomcli:
        @echo "Building bytomcli to cmd/bytomcli/bytomcli"
        @go build $(BUILD_FLAGS) -o cmd/bytomcli/bytomcli cmd/bytomcli/main.go
index f3a8859..f757a97 100644 (file)
--- a/README.md
+++ b/README.md
@@ -111,7 +111,6 @@ Flags:
       --p2p.seeds string                 Comma delimited host:port seed nodes
       --p2p.skip_upnp                    Skip UPNP configuration
       --prof_laddr string                Use http to profile bytomd programs
-      --simd.enable                      Enable SIMD mechan for tensority
       --vault_mode                       Run in the offline enviroment
       --wallet.disable                   Disable wallet
       --wallet.rescan                    Rescan wallet
@@ -132,22 +131,6 @@ Given the `bytomd` node is running, the general workflow is as follows:
 - send transaction, i.e., build, sign and submit transaction.
 - query all kinds of information, let's say, avaliable key, account, key, balances, transactions, etc.
 
-__simd feature:__
-
-You could enable the _simd_ feature to speed up the _PoW_ verification (e.g., during mining and block verification) by simply:
-```
-bytomd node --simd.enable
-```
-
-To enable this feature you will need to compile from the source code by yourself, and `make bytomd-simd`. 
-
-What is more,
-
-+ if you are using _Mac_, please make sure _llvm_ is installed by `brew install llvm`.
-+ if you are using _Windows_, please make sure _mingw-w64_ is installed and set up the _PATH_ environment variable accordingly.
-
-For more details about using `bytomcli` command please refer to [API Reference](https://github.com/Bytom/bytom/wiki/API-Reference)
-
 ### Dashboard
 
 Access the dashboard:
index a680815..5c3a112 100644 (file)
@@ -20,7 +20,6 @@ var runNodeCmd = &cobra.Command{
 func init() {
        runNodeCmd.Flags().String("prof_laddr", config.ProfListenAddress, "Use http to profile bytomd programs")
        runNodeCmd.Flags().Bool("mining", config.Mining, "Enable mining")
-       runNodeCmd.Flags().Bool("simd.enable", config.Simd.Enable, "Enable SIMD mechan for tensority")
 
        runNodeCmd.Flags().Bool("auth.disable", config.Auth.Disable, "Disable rpc access authenticate")
 
index 7d4f5a2..cfd9b49 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"`
        Federation *FederationConfig `mapstructure:"federation"`
 }
@@ -39,7 +38,6 @@ func DefaultConfig() *Config {
                Wallet:     DefaultWalletConfig(),
                Auth:       DefaultRPCAuthConfig(),
                Web:        DefaultWebConfig(),
-               Simd:       DefaultSimdConfig(),
                Websocket:  DefaultWebsocketConfig(),
                Federation: DefaultFederationConfig(),
        }
@@ -207,10 +205,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"`
@@ -246,13 +240,6 @@ func DefaultWalletConfig() *WalletConfig {
        }
 }
 
-// Default configurable web parameters.
-func DefaultSimdConfig() *SimdConfig {
-       return &SimdConfig{
-               Enable: false,
-       }
-}
-
 func DefaultWebsocketConfig() *WebsocketConfig {
        return &WebsocketConfig{
                MaxNumWebsockets:     25,