From 277d5b2c27fe9f3aabfcc8eeaa90807d3f393272 Mon Sep 17 00:00:00 2001 From: boomyl <563807243@qq.com> Date: Thu, 15 Jul 2021 16:15:00 +0800 Subject: [PATCH] remove unused config simd (#2037) --- Makefile | 4 ---- README.md | 17 ----------------- cmd/bytomd/commands/run_node.go | 1 - config/config.go | 13 ------------- 4 files changed, 35 deletions(-) diff --git a/Makefile b/Makefile index b9e8e9d3..9607153d 100644 --- 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 diff --git a/README.md b/README.md index f3a88593..f757a973 100644 --- 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: diff --git a/cmd/bytomd/commands/run_node.go b/cmd/bytomd/commands/run_node.go index a680815f..5c3a1123 100644 --- a/cmd/bytomd/commands/run_node.go +++ b/cmd/bytomd/commands/run_node.go @@ -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") diff --git a/config/config.go b/config/config.go index 7d4f5a2c..cfd9b491 100644 --- a/config/config.go +++ b/config/config.go @@ -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, -- 2.11.0