With the remote servers/VMs still running, in a new tab on your host machine run Puppeth with puppeth. Now that our VMs are running and our accounts are initialized, let’s see what Puppeth offers. We need two accounts because at least two signers are needed in a Proof of Authority blockchain (more on that later). Your new account is locked with a password. INFO Maximum peer count ETH = 25 LES = 0 total = 25 Make a note of the addresses generated by this process: $ mkdir node1 node2 If you’re using the VMs as suggested above, that can be in myproject if myproject is the parent folder which contains hi_puppeth1 and hi_puppeth2. On the host machine (outside the VMs), we should create new Ethereum accounts in the folder where we’re running our project. sudo add-apt-repository -y ppa:ethereum/ethereumĪll other prerequisites will be pulled in by Puppeth through docker itself, but we need to make sure the current user is allowed to operate Docker commands first: sudo usermod -a -G docker $USER Puppeth runs helper applications and Ethereum nodes for you in Docker containers, so we need Docker. Now let’s install the prerequisite software on each machine. Remember to run this from two separate tabs so you can keep both machines open and running. Note: change the IP addresses if the addresses of your VMs differ.įinally, run vagrant up vagrant ssh to boot each machine and SSH into it. Otherwise the VMs won’t be accessible by their domain name! 192.168.10.10 homestead.test Next, open up some ports on the VMs by modifying each clone’s Homestead.yaml’s final section, like so: ports : - send : 8545 to : 8545 - send : 30301 to : 30301 - send : 30302 to : 30302 - send : 30303 to : 30303 - send : 30304 to : 30304 - send : 30305 to : 30305 - send : 30306 to : 30306ĭon’t forget to add these virtual hosts into your host machine’s /etc/hosts file as well. mkdir my_project cd my_projectĬhange the IP address of the second clone by going into the hi_puppeth2 folder and modifying the IP address field to be 192.168.10.11 instead of 192.168.10.10. If you don’t know what Vagrant is, and what tools we’re using here, we recommend you read this introduction to Vagrant, which breaks it down in a newbie-friendly way. Note: This is a limitation of Puppeth, as it’s not possible to deploy a sealing node on the same machine using this tool. We need two machines because we’ll be running two Ethereum nodes, each on its own IP address. We’ll follow this process to get two virtual machines up and running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |