$GENESIS_PATH : location of genesis file you would like to put
Testnet
Mainnet
Create datadir
create a folder to store Viction data on your machine
Initialize the chain from genesis
Initialize / Import accounts for the nodes's keystore
If you already had an existing account, import it. Otherwise, please initialize new accounts
Initialize new accounts
Import accounts
List all available accounts in keystore folder
Start a node
Environment variables
$IDENTITY: the name of your node
$PASSWORD: the password file to unlock your account
$YOUR_COINBASE_ADDRESS: address of your account which generated in the previous step
$NETWORK_ID: the networkId. Mainnet: 88. Testnet: 89
$BOOTNODES: The comma separated list of bootnodes. Find them here
$WS_SECRET: The password to send data to the stats website. Find them here
$NETSTATS_HOST: The stats website to report to, regarding to your environment. Find them here
$NETSTATS_PORT: The port used by the stats website (usually 443)
Let's start a node
If you are a dapp developer, you should open RPC and WS apis:
If you want to run an archive node to be able to access historical data, you must add two more parameters to the command line --gcmode archive --store-reward , so the final command line will be:
If your node seems run smooth with no error logs but still get slash frequently. You need to check system time on your node, your system time have to be synced from NTP server
E.g:
NTP synchronized: no means your node does not use NTP, you have to enable it.
--verbosity: log level from 1 to 5. Here we're using 4 for debug messages
--datadir: path to your data directory created above.
--keystore: path to your account's keystore created above.
--identity: your full-node's name.
--password: your account's password.
--networkid: our network ID.
--port: your full-node's listening port (default to 30303)
--rpc, --rpccorsdomain, --rpcaddr, --rpcport, --rpcvhosts: your full-node will accept RPC requests at 8545 TCP.
--ws, --wsaddr, --wsport, --wsorigins: your full-node will accept Websocket requests at 8546 TCP.
--mine: your full-node wants to register to be a candidate for masternode selection.
--gasprice: Minimal gas price to accept for mining a transaction.
--targetgaslimit: Target gas limit sets the artificial target gas floor for the blocks to mine (default: 4712388)
--bootnode: bootnode information to help to discover other nodes in the network
--gcmode: blockchain garbage collection mode ("full", "archive")
--synmode: blockchain sync mode ("fast", "full", or "light". More detail: https://github.com/BuildOnViction/Viction/blob/master/eth/downloader/modes.go#L24)
--ethstats: send data to stats website
--tomo-testnet: required when the networkid is testnet(89)
--store-reward: store reward report
tomo --help
$ timedatectl
Local time: Fri 2019-07-26 05:57:40 CEST
Universal time: Fri 2019-07-26 03:57:40 UTC
RTC time: Fri 2019-07-26 03:58:01
Time zone: Europe/Berlin (CEST, +0200)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no