Gravity Testnet Instructions Set

On May 25, public Gravity testnet was launched. Many thanks to all the participants!

For those, who has not yet decided to join in, we issue a set of instructions on the testnet participation. The Gravity Team takes a serious view on information support of the project. If you have any questions which are not presented in the instructions, please leave them in the comments.

Join our Telegram dev chat
More information here

Instructions in the Set

  • Creating an Issue on Github

Attention! Resync your node please!

Last Friday our testnet had its first emission. Due to sync problems it is not displayed either in the wallet or in the explorer, and it can’t be spent. To fix it, all the nodes should be resynced, and first of all — all the witness nodes. You’ll need to recync your node in 24 hours, otherwise your node will fork in relation to the main testnet. Please notify us in the telegram chat after you’ll resync your node.

See the manual below or here

📢 Creating an Issue on Github

To participate our testnet, you need to follow instructions.

All the work with the code, along with suggestions should be presented on the Gravity testnet GitHub in the form of issues. Today we will be teaching you how to create and submit an issue on Github.

  • In order to do that, we first need to find an account for the products where we have special offers.

Wallet Registration Tutorial

We’re going to review the registration process for the Gravity Protocol Blockchain.

  • In order to do so, open the link https://wallet.gravityprotocol.org on your computer.

Install Gravity Node for Public Testnet

We’re going to show you how to assemble your own Gravity protocol node. Choose a server with Ubuntu 16.04 for the correct node installation. You need to install: git, docker, docker-compose. If you need use the command: docker login.

  • Please note, that you must have git, docker and docker compose installed on your machine.

git clone — depth 1 https://graphenelab.unfuddle.com/git/graphenelab_gravitypublic -b testnet

  • Right now, our repository is still private so in this video I’ll need credentials to log in.

ls

  • Then switch to that folder.

cd graphenelab_gravitypublic

  • Now we need to give the command to compile the node.

sudo docker-compose build

  • Now you’ll have to wait for approximately 20 minutes for the node to compile.

sudo docker-compose up

  • After a while, you’ll see blocks being created every few seconds.

Install Gravity Node for Public Testnet with Docker

We’ll learn how to install a gravity-protocol node using another method. It is also suitable if you have a version of the operating system differs from Ubutnu 16.04. You need to install: git, docker, docker-compose. If you need use the command: docker login.

  • First of all we need to clone the repository, we do this using git clone.

git clone https://github.com/GravityProtocol/gravity-testnet-docker.git

  • Next, we’ll check the newly created directory. As you can see, the directory is there, so let’s cd to it.

ls
cd gravity-testnet-docker

  • Now we need to download an image with the node. We’ll use docker-compose pull, to do that.

sudo docker-compose pull

  • After the image has downloaded, we need to boot up our node.

sudo docker-compose up

  • Soon you’ll see blocks being created.

Turn a node into a witness node

We’re going to turn a node into a witness node.

  • First, open node’s directory.

cd gravity-testnet-docker

  • Then, run the node in daemon mode, and run the cli-wallet with advanced settings.

sudo docker-compose up -d
sudo docker-compose exec gravity_node cli_wallet -w /var/lib/gravity/wallet.json

  • Next, Set a password for the wallet and unblock the wallet.

set_password password
unlock password

  • Import your account in the wallet.

import_key “your-account” “your-active-private-key”

  • Here’s where you’ll get a lifetime membership, and then create a witness.

upgrade_account “account” true
create_witness “account” “url” true

  • Now you’ll need to get your witness-ID.

get_witness “account”

  • As you can see, the witness-ID for this specific account is “1.6.*” You’re going to want to memorize it or write it down. There is also a public key for signing blocks which also needs to be saved.

get_private_key [public signing key] (without quote)

  • Now close the cli-wallet using Ctrl+C.

sudo nano ./data/config.ini

  • Add your witness-ID, and replace the keys.

sudo docker-compose down
sudo docker-compose up -d

  • And there you have it, a running witness node!

Comittee Memember Registration Tutorial

We’ll be learning how to create a member of the committee from an account.

  • To begin, we need to open the file with the program node.

cd gravity-testnet-docker

  • Now, let’s start our node with demonization.

sudo docker-compose up -d

  • Next, run the cli-wallet with extra parameters.

sudo docker-compose exec gravity_node cli_wallet -w /var/lib/gravity/wallet.json

  • At this time, we’ll create a password for the wallet.

set_password password

  • Unblock the wallet and we’ll be sent into our account.

unlock password

  • Here, we’ll import our account.

import_key “your-account” “your-active-private-key”

  • Now that we’ve done this, we have a lifetime membership for this account,

upgrade_account “account” true

  • From this account we’ll be creating a member of the committee.

create_committee_member “account” “url” true

  • Execute the following command, an example is in the video description.

If you’ve already created a witness node, you can skip the password setting steps for the wallet, import the account and purchase a lifetime membership.

How to make proposals and to edit a blockchain configuration

We’re going to learn how to make proposals and to edit a blockchain configuration.

  • First we’ll open cli-wallet when the node is launched.

sudo docker-compose exec gravity_node cli_wallet -w /var/lib/gravity/wallet.json

  • Then we’ll unlock the wallet.

unlock 1234567

And now we’ll get to work.

  • We’ll get current configuration values:

get_global_properties

  • We’ll make a proposal to change the interval between the blocks using the template:

propose_parameter_change [from account] [time, the value must be greater than CURRENTTIME + committee_proposal_review_period and lower than CURRENTTIME + maximum_proposal_lifetime] {json with the new values} true

For example:

propose_parameter_change “g2090i8190e9280o7900” “2018–06–13T17:28:00” {“block_interval”: 3} true

  • Now we’ll get the number of proposal id.

get_account_history “g2090i8190e9280o7900” 1

2018–06–13T17:00:20 proposal_create_operation g2090i8190e9280o7900 fee: 20.00007 ZGV result: 1.10.1

  • And we’ll vote.

approve_proposal g2090i8190e9280o7900 1.10.1 {“active_approvals_to_add” : [“g2090i8190e9280o7900”]} true

  • Now we’ll close the cli-wallet using Ctrl+C

And we’ll change the fees:

  • First we’ll get current values of the configuration

get_global_properties

  • Then we’ll make a proposal to change the fees.

propose_fee_change “g2090i8190e9280o7900” “2018–06–13T04:32:00” {0 : {“fee”: 1, “price_per_kbyte”: 0,1}, 34 : {“fee”: 10000000}} true

  • Now we’ll get the number of proposal id.

get_account_history “g2090i8190e9280o7900” 1

2018–06–13T17:00:20 proposal_create_operation g2090i8190e9280o7900 fee: 20.00007 ZGV result: 1.10.1

  • And vote:

approve_proposal g2090i8190e9280o7900 1.10.1 {“active_approvals_to_add” : [“g2090i8190e9280o7900”]} true

How to update Gravity Protocol node

We’re going to learn how to update Gravity Protocol node.

  • First, we’ll go to the node’s directory.

cd gravity-testnet-docker

  • Here we’ll stop our node.

sudo docker-compose down

  • Then we’ll receive the update from github.

git pull origin

  • And new versions of packages from Dockerhub.

sudo docker-compose pull

  • Now we’ll run the node in daemon mode.

sudo docker-compose up -d

  • If you prefer, you can display current sync status on the screen.

sudo docker-compose logs — tail 10 -f

  • To hide the logs, press *Ctrl+Z.

How to resync Gravity Protocol node

We’re going to learn how to resync Gravity Protocol node.

  • First we’ll go to the node’s directory.

cd gravity-testnet-docker

  • Here we’ll stop our node .

sudo docker-compose down

  • And run it again.

sudo docker-compose up -d

  • If you prefer, you can display current sync status on the screen.

sudo docker-compose logs — tail 10 -f

  • To hide the logs, press Ctrl+Z.

📢 Gravity Launches Public Testnet

Come to our testnet and break our toys!

See the previous articles

Gravity Protocol Intro
A Deeper Look Into Dan Larimer’s radio
Gravity Protocol initial distribution
Adaptive Emission: Making Blockchain Economy Real
Gravity IPFS: Off-chain Data Storage
Gravity: Ecosystem Participants
Gravity: Stablecoin Solutions

Want to join our team?

Gravity Protocol is hiring!

Follow Us

Website: http://gravity.io
BitsharesTalk: https://bitsharestalk.org/index.php?board=122.0
Bitcointalk: https://bitcointalk.org/index.php?topic=4189531.0
Telegram channel: https://t.me/gravityprotocol
Telegram dev chat: https://t.me/gravity_protocol
Blog: https://steemit.com/@gravity-protocol
Blog: https://medium.com/@gravityprotocol
Twitter: https://twitter.com/protocolgravity
Discord: https://discord.gg/bcavmUg
Linkedin: https://www.linkedin.com/company/gravityprotocol

Distributed Ledger Solutions for Small and Medium Enterprises

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store