We are pleased to announce:
Thanks to that, you will explore our BFT-like own algorithm of consensus Resonance and cross-chain transactions between shards.
Please be aware all the code published on The Power GitHub is the intellectual property of The Power. You can use this code to explore and test the code in your local Power_testnet only.This code is published for non-commercial purposes!
1. In case you are using macOS, you may need a ‘Homebrew’ package manager to install ‘vagrant’. You can install ‘brew’ using the following command in terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Of course, you could use any other known method of prerequisites installation. To get more information about the ‘Homebrew’ package manager search on its official website: https://brew.sh/
2. Install vagrant. Also, you need have installed a virtual machine at this step. We tested ‘vagrant’ with ‘Virtual Box’ and ‘Parallels’ on macOS. You can install ‘vagrant’ on macOS using the following command in terminal:
brew install caskroom/cask/vagrant
3. In case you’re using parallels virtual machine, you should install vagrant plugin:
vagrant plugin install vagrant-parallels
4. In case you’re using virtualbox, you should modify your PATH environment:
5. We use the hostmanager vagrant plugin to change /etc/hosts file on a host system. Please, install this plugin:
vagrant plugin install vagrant-hostmanager
1. Creating a directory:
2. Get into that directory:
3. Download prepared bundle which contains: Vagrantfile, scripts for managing testnet and testnet configuration files
At this step, you will use an only Vagrant file from this bundle. If you haven’t the ‘wget’ command you can download the file using any other method. For example, you can download it using a web browser and put it to created on the previous step the directory ‘thepower’.
4. Unpack which was downloaded:
tar xf blockchain.tar.bz2
5. It configures a virtual machine:
6. The first virtual machine run requires a reboot:
7. Start it again:
8. Getting inside the VM:
If you were asked a password you should type ‘vagrant’ as the password.
9. Do the same as 1–4 but with other files inside a virtual machine:
mkdir thepower; cd thepower; wget http://dist.thepower.io/blockchain.tar.bz2 ; tar xf blockchain.tar.bz2
10. Download latest version of thepower node software:
11. Start the testnet:
12. Wait for some time (5 seconds would be enough).
13. Check everything is launched in a proper way with the command ‘netstat’, which one shows all needed ports are open. You should see 9 different ports. These ports are API ports of the power nodes:
netstat -an |grep 498
14. This is example of a call to one of the nodes API:
curl http://127.0.0.1:49842/api/node/status | jq .
curl http://pwr.local:49841/api/node/status | jq .
Or you can use your browser on host system to call this APIs (domain pwr.local is already added to your /etc/hosts by vagrant-hostmanager plugin).
Congrats! Your Power_testnet is launched successfully!
Now you could use all API functions following this wiki:
If you need to update your software to the latest version, you have to run the command below thus you’ll get the latest version of software:
You have to run it within VM (you’ll get into VM via command ‘vagrant ssh’)
You a more than welcome to share your experience while you test Power_testnet. Your feedback, questions and proposals are very important to us.
Let’s turn on The Power!
We provide close access to our testnet to early adopters and partners by request (pm us in Telegram or send e-mail on firstname.lastname@example.org)