Skip to content

Instantly share code, notes, and snippets.

@etienne-napoleone
Last active November 26, 2022 17:17
Show Gist options
  • Select an option

  • Save etienne-napoleone/b9bee1987ed477b2bb86ff7418d88692 to your computer and use it in GitHub Desktop.

Select an option

Save etienne-napoleone/b9bee1987ed477b2bb86ff7418d88692 to your computer and use it in GitHub Desktop.
The TomoChain client flags
Informations on the different networks here: https://docs.tomochain.com/general/networks/
The values are what we recommend to use when running a fullnode or masternode.
required (basic fullnode):
# The id of your network (see networks documentation for the networks ID)
--networkid $ID
# The address of the local account to unlock
--unlock $ACCOUNT
# password file to unlock the account
--password ./password
# The list of bootnodes (see networks documentation for per network bootnodes lists)
--bootnodes $BOOTNODES
# The sync mode, only full is suported for now
--syncmode full
# Connection string to the stats page (see networks documentation for the per network address of the stats page and the ws_secret)
--ethstats ${IDENTITY}:${WS_SECRET}@${NETSTATS_HOST}:${NETSTATS_PORT}
# log level: 1 is rerror 2 is warning 3 is info, 4 is debug, 5+ trace
--verbosity 3
# Identity of your node (name)
--identity $IDENTITY
# Port used by the client
--port 30303
additional required when running a masternode:
# Minimal gas price
--gasprice "250000000"
# Basic target gas floor for blocks to mine
--targetgaslimit "84000000"
# enable staking (for masternodes)
--mine
optional:
# enable RPC
--rpc
# CORS for RPC
--rpccorsdomain "*"
# RPC server address
--rpcaddr 0.0.0.0
# RPC port
--rpcport 8545
# Virtual hostname for RPC to accept requests
--rpcvhosts "*" \
# enable web socket
--ws
# WS server address
--wsaddr 0.0.0.0
# WS port
--wsport 8546
# Whitelisted web socker origins
--wsorigins "*"
# Making sure there is enough transactions slots
--txpool.globalqueue 5000
# Making sure there is enough transactions slots
--txpool.globalslots 5000
# For dapps that need to watch on all new TXs (block explorer for example)
--announce-txs
# custom datadir
--datadir $DATA_DIR
# custom keystore dir (otherwise in datadir by default)
--keystore $KEYSTORE_DIR
# Max number of peers
--maxpeers 25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment