Created
November 21, 2018 14:22
-
-
Save Krucamper/94670071a6872821b617d62d56fcb27d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ทำการ run node แต่ล่ะตัว โดยแต่ล่ะ node จะต้อง run แยก terminal กัน */ | |
/* node 1 เราจะ set ให้เป็น master node และให้ node อื่นๆ peer mining */ | |
geth --datadir "node1" --networkid 10 --port 30303 --rpc --rpcport 8545 --rpcaddr "0.0.0.0" --rpccorsdomain "*" --rpcapi="db,eth,net,web3,personal" --nodiscover console 2>node1.log | |
/* ทำการ run node ที่ 2 ใน terminal 2 */ | |
geth --datadir "node2" --networkid 10 --port 30304 --ipcdisable --nodiscover console 2>node2.log | |
/* ทำการ run node ที่ 3 ใน terminal 3 */ | |
geth --datadir "node3" --networkid 10 --port 30305 --ipcdisable --nodiscover console 2>node3.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment