Node
-
git clone https://github.com/thaichain/mainnet.git
-
cd mainnet
-
docker run --rm -it -v $PWD:/gochain -w /gochain thaichain/gochain gochain --datadir /gochain/node init genesis.json
-
docker run -itd --restart=always --name thaichain-node -v $PWD:/gochain -p 40333:40333 -p 8545:8545 -p 8546:8546 thaichain/gochain gochain --networkid 7 --datadir /gochain/node --cache 4096 --port 40333 -rpcaddr 0.0.0.0 --rpc --rpccorsdomain "" --ws --wsaddr 0.0.0.0 --wsorigins ""
=-=-= OR =-=-=
docker run -itd --restart=always --name thaichain-node -v $PWD:/gochain --net=host thaichain/gochain gochain --networkid 7 --datadir /gochain/node --cache 4096 --port 40333 -rpcaddr 0.0.0.0 --rpc --rpccorsdomain "" --ws --wsaddr 0.0.0.0 --wsorigins ""
Signer
-
git clone https://github.com/thaichain/mainnet.git
-
cd mainnet
-
echo "password" > password.txt
-
docker run --rm -it -v $PWD:/gochain -w /gochain thaichain/gochain gochain --datadir /gochain/node --password password.txt account new
-
docker run --rm -it -v $PWD:/gochain -w /gochain thaichain/gochain gochain --datadir /gochain/node init genesis.json
-
docker run -itd --restart=always --name thaichain-node -v $PWD:/gochain -p 40333:40333 -w /gochain thaichain/gochain gochain --networkid 7 --datadir /gochain/node --cache 4096 --port 40333 --mine --unlock [account from step 4] --password password.txt --extradata [Node name] --syncmode full --gcmode archive
=-=-= OR =-=-=
docker run -itd --restart=always --name thaichain-node -v $PWD:/gochain --net=host -w /gochain thaichain/gochain gochain --networkid 7 --datadir /gochain/node --cache 4096 --port 40333 --mine --unlock [account from step 4] --password password.txt --extradata [Node name] --syncmode full --gcmode archive