BitShares Forum

Other => Graveyard => Gravity => Topic started by: Gravity Protocol on June 24, 2018, 01:54:39 pm

Title: Gravity Testnet Instructions Set
Post by: Gravity Protocol on June 24, 2018, 01:54:39 pm
On May 25, 2018, 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.

Instructions in the Set


Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •
Title: Creating an Issue on Github
Post by: Gravity Protocol on June 24, 2018, 04:44:35 pm
Creating an Issue on Github

All the work with the code, along with suggestions should be presented on the Gravity testnet GitHub (https://github.com/GravityProtocol) in the form of issues. This post will help you to create and submit an issue on Github.

You can find video instructions here (https://youtu.be/Ht7ml2fpF4M).

Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •
Title: Wallet Registration Tutorial
Post by: Gravity Protocol on June 24, 2018, 04:47:53 pm
Wallet Registration Tutorial

We’re going to review the registration process for the Gravity Protocol Blockchain.
See video instruction here (https://youtu.be/T3sbwFu4hIQ).

Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •
Title: Install Gravity Node for Public Testnet
Post by: Gravity Protocol on June 24, 2018, 04:52:55 pm
Install Gravity Node for Public Testnet

In this tutorial 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.

See the video instruction here (https://youtu.be/aBTXe_OsJSg).


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

Code: [Select]
ls

Code: [Select]
cd graphenelab_gravitypublic

Code: [Select]
sudo docker-compose build

Code: [Select]
sudo docker-compose up

Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •
Title: Install Gravity Node for Public Testnet with Docker
Post by: Gravity Protocol on June 24, 2018, 04:56:19 pm
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.

See video instruction here (https://youtu.be/-gtgSK84Su4).


Code: [Select]
git clone https://github.com/GravityProtocol/gravity-testnet-docker.git

Code: [Select]
ls
cd gravity-testnet-docker

Code: [Select]
sudo docker-compose pull

Code: [Select]
sudo docker-compose up

Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •
Title: Turn a node into a witness node
Post by: Gravity Protocol on June 24, 2018, 05:02:04 pm
Turn a node into a witness node

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

Video instructions you can find here (https://youtu.be/vnAaY4Gw-Rs).

Code: [Select]
cd gravity-testnet-docker

Code: [Select]
sudo docker-compose up -d
sudo docker-compose exec gravity_node cli_wallet -w /var/lib/gravity/wallet.json

Code: [Select]
set_password password
unlock password


Code: [Select]
import_key “your-account” “your-active-private-key”

Code: [Select]
upgrade_account “account” true
create_witness “account” “url” true


Code: [Select]
get_witness “account”

Code: [Select]
get_private_key [public signing key] (without quote)


Code: [Select]
sudo nano ./data/config.ini

Code: [Select]
sudo docker-compose down
sudo docker-compose up -d

Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •
Title: Comittee Memember Registration Tutorial
Post by: Gravity Protocol on June 24, 2018, 05:10:32 pm
Comittee Memember Registration Tutorial

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

Video instrustion is here (https://youtu.be/Q8cU7yGVjoQ).

Code: [Select]
cd gravity-testnet-docker

Code: [Select]
sudo docker-compose up -d

Code: [Select]
sudo docker-compose exec gravity_node cli_wallet -w /var/lib/gravity/wallet.json

Code: [Select]
set_password password

Code: [Select]
unlock password

Code: [Select]
import_key “your-account” “your-active-private-key”

Code: [Select]
upgrade_account “account” true

Code: [Select]
create_committee_member “account” “url” true
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.

Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •
Title: How to make proposals and to edit a blockchain configuration
Post by: Gravity Protocol on June 24, 2018, 05:15:25 pm
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.

Code: [Select]
sudo docker-compose exec gravity_node cli_wallet -w /var/lib/gravity/wallet.json

Code: [Select]
unlock 1234567

Code: [Select]
get_global_properties

Code: [Select]
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

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

Code: [Select]
get_account_history “g2090i8190e9280o7900” 1
2018–06–13T17:00:20 proposal_create_operation g2090i8190e9280o7900 fee: 20.00007 ZGV result: 1.10.1


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

And we’ll change the fees:


Code: [Select]
get_global_properties

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

Code: [Select]
get_account_history “g2090i8190e9280o7900” 1
2018–06–13T17:00:20 proposal_create_operation g2090i8190e9280o7900 fee: 20.00007 ZGV result: 1.10.1


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

Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •
Title: How to update Gravity Protocol node
Post by: Gravity Protocol on June 24, 2018, 05:17:29 pm
How to update Gravity Protocol node

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

Code: [Select]
cd gravity-testnet-docker

Code: [Select]
sudo docker-compose down

Code: [Select]
git pull origin

Code: [Select]
sudo docker-compose pull

Code: [Select]
sudo docker-compose up -d

Code: [Select]
sudo docker-compose logs — tail 10 -f
Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •
Title: Re: Gravity Testnet Instructions Set
Post by: Gravity Protocol on June 24, 2018, 05:18:14 pm
Resyncing the node

Witnesses:

1. To avoid missing the blocks, witnesses have to use the backup node
Make sure that your backup node is running.

2. In the cli_wallet change your witness signing key to backup key

Code: [Select]
update_witness g1234r1234v1234z1234 "my url" ZGV...backupSigningPublicKey true
Make sure that block production continued from your witness

3. Restart the main node
docker:

Code: [Select]
docker-compose down
docker-compose up -d

without docker:

Code: [Select]
Ctrl+C
./witness_node --data-dir=data --resync-blockchain

Wait for synchronization after update

4. Switch your witness back to its main signing key

Code: [Select]
update_witness g1234r1234v1234z1234 "my url" ZGV...mainSigningPublicKey true
Make sure that block production continued from your witness

5. Restart the backup node the same way as the main

Non-witnesses:

1. Restart the node
docker:

Code: [Select]
docker-compose down
docker-compose up -d

without docker:

Code: [Select]
Ctrl+C
./witness_node --data-dir=data --resync-blockchain
Wait for synchronization after update


Follow us
• Website (http://gravity.io/) • BitsharesTalk (https://bitsharestalk.org/index.php?board=122.0) • Telegram channel (https://t.me/gravityprotocol) • Telegram dev chat (https://t.me/gravity_protocol) • Blog on Steemit (https://steemit.com/@gravity-protocol) • Blog on Medium (https://medium.com/@gravityprotocol) • Twitter (https://twitter.com/protocolgravity) • Discord (https://discord.gg/bcavmUg) • Linkedin (https://www.linkedin.com/company/gravity-foundation/) •