diff --git a/docs/01_nodeos/02_usage/01_nodeos-configuration.md b/docs/01_nodeos/02_usage/01_nodeos-configuration.md index 4db966a433..68ec2db596 100644 --- a/docs/01_nodeos/02_usage/01_nodeos-configuration.md +++ b/docs/01_nodeos/02_usage/01_nodeos-configuration.md @@ -22,6 +22,7 @@ The example below shows a typical usage of `nodeos` when starting a block produc ```sh nodeos \ -e -p eosio \ + --vote-threads 3 \ --data-dir /users/mydir/eosio/data \ --config-dir /users/mydir/eosio/config \ --plugin eosio::producer_plugin \ diff --git a/docs/01_nodeos/02_usage/03_development-environment/00_local-single-node-testnet.md b/docs/01_nodeos/02_usage/03_development-environment/00_local-single-node-testnet.md index e94c037d02..b326868b0f 100644 --- a/docs/01_nodeos/02_usage/03_development-environment/00_local-single-node-testnet.md +++ b/docs/01_nodeos/02_usage/03_development-environment/00_local-single-node-testnet.md @@ -32,7 +32,7 @@ Open one "terminal" window and perform the following steps: Start your own single-node blockchain with this single command: ```sh -nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin +nodeos -e -p eosio --vote-threads 3 --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin ``` [[info | Nodeos Minimal Options]] diff --git a/tests/cli_test.py b/tests/cli_test.py index 74e730e60c..4505e0dad2 100755 --- a/tests/cli_test.py +++ b/tests/cli_test.py @@ -355,7 +355,7 @@ def abi_file_with_nodeos_test(): os.makedirs(data_dir, exist_ok=True) walletMgr = WalletMgr(True) walletMgr.launch() - cmd = "./programs/nodeos/nodeos -e -p eosio --plugin eosio::trace_api_plugin --trace-no-abis --plugin eosio::producer_plugin --plugin eosio::producer_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::chain_plugin --plugin eosio::http_plugin --access-control-allow-origin=* --http-validate-host=false --max-transaction-time=-1 --resource-monitor-not-shutdown-on-threshold-exceeded " + "--data-dir " + data_dir + " --config-dir " + data_dir + cmd = "./programs/nodeos/nodeos -e -p eosio --vote-threads 2 --plugin eosio::trace_api_plugin --trace-no-abis --plugin eosio::producer_plugin --plugin eosio::producer_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::chain_plugin --plugin eosio::http_plugin --access-control-allow-origin=* --http-validate-host=false --max-transaction-time=-1 --resource-monitor-not-shutdown-on-threshold-exceeded " + "--data-dir " + data_dir + " --config-dir " + data_dir node = Node('localhost', 8888, nodeId, data_dir=Path(data_dir), config_dir=Path(data_dir), cmd=shlex.split(cmd), launch_time=datetime.datetime.now().strftime('%Y_%m_%d_%H_%M_%S'), walletMgr=walletMgr) time.sleep(5) node.waitForBlock(1) diff --git a/tests/gelf_test.py b/tests/gelf_test.py index d0ed7f1888..21746c63cb 100755 --- a/tests/gelf_test.py +++ b/tests/gelf_test.py @@ -86,7 +86,7 @@ def gelfServer(stop): data_dir = Path(Utils.getNodeDataDir(node_id)) config_dir = Path(Utils.getNodeConfigDir(node_id)) -start_nodeos_cmd = shlex.split(f"{Utils.EosServerPath} -e -p eosio --data-dir={data_dir} --config-dir={config_dir}") +start_nodeos_cmd = shlex.split(f"{Utils.EosServerPath} -e -p eosio --vote-threads 2 --data-dir={data_dir} --config-dir={config_dir}") if os.path.exists(data_dir): shutil.rmtree(data_dir) os.makedirs(data_dir) diff --git a/tests/p2p_no_listen_test.py b/tests/p2p_no_listen_test.py index 76b3c76886..d669fcce1b 100755 --- a/tests/p2p_no_listen_test.py +++ b/tests/p2p_no_listen_test.py @@ -33,6 +33,8 @@ '-e', '-p', 'eosio', + '--vote-threads', + '3', '--p2p-listen-endpoint', '', '--plugin', diff --git a/tests/plugin_http_api_test.py b/tests/plugin_http_api_test.py index f9628847cc..687788f76c 100755 --- a/tests/plugin_http_api_test.py +++ b/tests/plugin_http_api_test.py @@ -97,7 +97,7 @@ def startEnv(self) : "--p2p-peer-address localhost:9011 --resource-monitor-not-shutdown-on-threshold-exceeded ") % (self.data_dir, self.config_dir, self.data_dir, "\'*\'", "false") nodeos_flags += category_config.nodeosArgs() - start_nodeos_cmd = ("%s -e -p eosio %s %s ") % (Utils.EosServerPath, nodeos_plugins, nodeos_flags) + start_nodeos_cmd = ("%s -e -p eosio --vote-threads 2 %s %s ") % (Utils.EosServerPath, nodeos_plugins, nodeos_flags) self.nodeos = Node(TestHelper.LOCAL_HOST, TestHelper.DEFAULT_PORT, self.node_id, self.data_dir, self.config_dir, shlex.split(start_nodeos_cmd), walletMgr=self.keosd) time.sleep(self.sleep_s*2) self.nodeos.waitForBlock(1, timeout=30) diff --git a/tests/resource_monitor_plugin_test.py b/tests/resource_monitor_plugin_test.py index 4370d529dc..0036bf188c 100755 --- a/tests/resource_monitor_plugin_test.py +++ b/tests/resource_monitor_plugin_test.py @@ -77,7 +77,7 @@ def prepareDirectories(): def runNodeos(extraNodeosArgs, myTimeout): """Startup nodeos, wait for timeout (before forced shutdown) and collect output.""" if debug: Print("Launching nodeos process.") - cmd="programs/nodeos/nodeos --config-dir rsmStaging/etc -e -p eosio --plugin eosio::chain_api_plugin --data-dir " + dataDir + " " + cmd="programs/nodeos/nodeos --config-dir rsmStaging/etc -e -p eosio --vote-threads 2 --plugin eosio::chain_api_plugin --data-dir " + dataDir + " " cmd=cmd + extraNodeosArgs if debug: Print("cmd: %s" % (cmd)) diff --git a/tests/split_blocklog_replay_test.py b/tests/split_blocklog_replay_test.py index ae7c24ffd8..dc9c8d178e 100755 --- a/tests/split_blocklog_replay_test.py +++ b/tests/split_blocklog_replay_test.py @@ -17,7 +17,7 @@ os.makedirs(config_dir) try: - start_nodeos_cmd = f"{Utils.EosServerPath} -e -p eosio --data-dir={data_dir} --config-dir={config_dir} --blocks-log-stride 10" \ + start_nodeos_cmd = f"{Utils.EosServerPath} -e -p eosio --vote-threads 2 --data-dir={data_dir} --config-dir={config_dir} --blocks-log-stride 10" \ " --plugin=eosio::http_plugin --plugin=eosio::chain_api_plugin --http-server-address=localhost:8888" nodeos.launchCmd(start_nodeos_cmd, node_id) diff --git a/tutorials/bios-boot-tutorial/bios-boot-tutorial.py b/tutorials/bios-boot-tutorial/bios-boot-tutorial.py index 8822546307..474d34c52a 100755 --- a/tutorials/bios-boot-tutorial/bios-boot-tutorial.py +++ b/tutorials/bios-boot-tutorial/bios-boot-tutorial.py @@ -118,6 +118,7 @@ def startNode(nodeIndex, account): ' --p2p-max-nodes-per-host ' + str(maxClients) + ' --enable-stale-production' ' --producer-name ' + account['name'] + + ' --vote-threads 3' ' --signature-provider ' + account['pub'] + '=KEY:' + account['pvt'] + ' --plugin eosio::http_plugin' ' --plugin eosio::chain_api_plugin'