-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could you provide a tutorial on building a private chain please? #292
Comments
@fenghaoming take a look at devnet: You can import private key and run your local private chain with 1 validator |
Thank you for your answer! Again, can I build a devnet with multiple nodes(validators)? How do I do that? |
For a totally new chain, you need to generate a new genesis block, and you will need seed nodes so your new peers can find each other. |
Thank you for your answer! I would like to ask the following questions: |
There's a utility to generate one in the code You cannot run multiple nodes on one box. What would be point? If you want one node/box run devnet as above The properties file would be same as now, just with a new seed host. To start a new mainnet, you need to run 2-4+ nodes afaik. |
Could you tell me the name of the utility or which code function? |
As already stated, for a new mainnet, you cannot run multiple nodes on one box, regardless how you set up ports. You could fork and remove such protections from the code,but you'd have to track them down and remove. |
Thanks for your advice. After experimenting, I found a way to start multiple nodes on the same LINUX platform to form a private network. The steps to share are as follows: 1. Build with source
Note: mvn install may not be able to download these three files, but you can manually download them and put them in: semux-core/dist/cache 2. Create 4 nodes directory
3. Modify the properties
4. Import and create accounts
5. Run
|
Congrats! It is interesting that you were able to do this with just different ports. There are supposed to be protections in place. Maybe there's an exception to that rule for 0.0.0.0? The original author really was against multiple nodes of network running from single ip/point of failure, so it is very surprising. Glad you found way to make it work |
🚀 Feature Request
Could you provide a tutorial on building a private chain please?
The text was updated successfully, but these errors were encountered: