enable multithreading by default (10-20% faster sync) (#3493)

This commit is contained in:
Ștefan Talpalaru 2022-03-19 08:59:10 +01:00 committed by GitHub
parent a1f3adc3e2
commit ea5c052016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -191,8 +191,8 @@ type
name: "slashing-db-kind" }: SlashingDbKind
numThreads* {.
defaultValue: 1,
desc: "Number of worker threads (set this to 0 to use as many threads as there are CPU cores available)"
defaultValue: 0,
desc: "Number of worker threads (\"0\" = use as many threads as there are CPU cores available)"
name: "num-threads" }: int
case cmd* {.

View File

@ -36,8 +36,8 @@ The following options are available:
--insecure-netkey-password Use pre-generated INSECURE password for network private key file [=false].
--agent-string Node agent string which is used as identifier in network [=nimbus].
--subscribe-all-subnets Subscribe to all subnet topics when gossiping [=false].
--num-threads Number of worker threads (set this to 0 to use as many threads as there are CPU
cores available) [=1].
--num-threads Number of worker threads ("0" = use as many threads as there are CPU cores
available) [=0].
-b, --bootstrap-node Specifies one or more bootstrap nodes to use when connecting to the network.
--bootstrap-file Specifies a line-delimited file of bootstrap Ethereum network addresses.
--listen-address Listening address for the Ethereum LibP2P and Discovery v5 traffic [=0.0.0.0].