Skip to content
Permalink
Browse files

more example for node

  • Loading branch information...
thanhson1085 committed Jul 9, 2019
1 parent 78b72a5 commit 0a7dfd370c6e1a10e9ffdb75290e4cfb1b137385
Showing with 14 additions and 14 deletions.
  1. +14 −14 docs/masternode/tomonative.md
@@ -111,31 +111,29 @@ tomo account new \
#### Let's start a node
```bash
tomo --syncmode "full" \
--datadir $DATA_DIR --networkid $NETWORK_ID --port 30303 \
--keystore $KEYSTORE_DIR --password $PASSWORD \
--identity $IDENTITY \
--mine --gasprice 250000000 \
--bootnodes $BOOTNODES \
--ethstats $IDENTITY:$WS_SECRET@$NETSTATS_HOST:$NETSTATS_PORT
```

If you are a dapp developer, you should open RPC and WS apis:
```bash
tomo --syncmode "full" \
--datadir $DATA_DIR --networkid $NETWORK_ID --port 30303 \
--keystore $KEYSTORE_DIR --password $PASSWORD \
--rpc --rpccorsdomain "*" --rpcaddr 0.0.0.0 --rpcport 8545 --rpcvhosts "*" \
--rpcapi "db,eth,net,web3,personal,debug" \
--gcmode "archive" \
--ws --wsaddr 0.0.0.0 --wsport 8546 --wsorigins "*" --unlock "$YOUR_COINBASE_ADDRESS" \
--identity $IDENTITY \
--mine --gasprice 2500 \
--mine --gasprice 250000000 \
--bootnodes $BOOTNODES \
--ethstats $IDENTITY:$WS_SECRET@$NETSTATS_HOST:$NETSTATS_PORT
console
```


#### Some explanations on the flags

```
@@ -172,6 +170,8 @@ tomo --syncmode "full" \
--ethstats: send data to stats website
--tomo-testnet: required when the networkid is testnet(89)
--store-reward: store reward report
```
To see all flags usage

0 comments on commit 0a7dfd3

Please sign in to comment.
You can’t perform that action at this time.